Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:20:29+00:00 2026-06-08T13:20:29+00:00

Program: int main( ) { printf(%d,printf(%d %d,5,5)&printf(%d %d,7,7)); return 0; } Output: 5 57

  • 0

Program:

   int main( )
    {
    printf("%d",printf("%d %d",5,5)&printf("%d %d",7,7));
    return 0;
    }

Output:

5 57 73

I am new to C, I could guess where the 5 57 7 came from, but no idea where the 3 came from. Can someone explain the output?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:20:31+00:00Added an answer on June 8, 2026 at 1:20 pm

    If you apply binary AND to 3 and 3 (which are the return values of both nested printf calls) you get 3 as result.

    Note that the code actually contains undefined behaviour, since the order of the nested calls isn’t defined.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the below program,i am not getting values from printf . #include<stdio.h> int main()
#include<stdio.h> int main() { char a, b; scanf(%c, &a); scanf(%c, &b); printf(%c %c,a,b); return
This is my program: int main(int argc, char *argv[]){ if(argc != 2){ printf(Uso: ./server
I have following simple program: import std.stdio; int main(string[] argv) { writeln(Hello, world!); return
Consider the following program: #include <stdio.h> int main(void) { return 0; } When i
Can someone help me to understand the output of these program. int* fun1(); void
Consider the output of the below program: int main() { int ret; ret=fork(); ret=fork();
#include <stdio.h> int main(void) { int x = 1000; char *ptr = &x; printf(%d\n,*ptr);
I've just typed in an example from K&R... #include <stdio.h> int main (int argc,
What should be the output of this C program? #include<stdio.h> int main(){ int x,y,z;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.