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 does volatile do?

0 Answers  


What is call by reference in functions?

1 Answers  


Write a program for Overriding.

0 Answers  


What is macro?

5 Answers   IBM,


What is the difference between exit() and _exit() function in c?

0 Answers  


how can i get output like this? 1 2 3 4 5 6

6 Answers   Excel,


You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?

1 Answers  


Tell me when is a void pointer used?

0 Answers  


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

0 Answers  


void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?

7 Answers  


Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.

1 Answers  


What are all different types of pointers in c?

0 Answers  


Categories