int a=20;
int b=30;
int c=40;
printf("%d%d%d");
what will be the output?

Answers were Sorted based on User's Feedback



int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?..

Answer / senthil

will print junk values, as no arguments after printf string present.

Is This Answer Correct ?    9 Yes 2 No

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?..

Answer / ankitdas

403020

Is This Answer Correct ?    2 Yes 0 No

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?..

Answer / sangam khera

depending upon the compiler ....

IN TURBO C++ -> it will give an error a,b,c assigned a valued that is never used."

IN GCC(DEV C++)->it will give garbage value....

Is This Answer Correct ?    2 Yes 0 No

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?..

Answer / anu

203040

Is This Answer Correct ?    0 Yes 0 No

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?..

Answer / neethu

%d%d%d

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More C Interview Questions

What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


how could explain about job profile

0 Answers  


What is alloca() and why is its use discouraged?

1 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


Why is sizeof () an operator and not a function?

0 Answers  






Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }

1 Answers   Vector, Vector India,


Is that possible to add pointers to each other?

0 Answers  


please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


Explain about block scope in c?

0 Answers  


List the variables are used for writing doubly linked list program.

0 Answers   Infosys, Wipro,


What are the advantages of c preprocessor?

0 Answers  


Categories