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

can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


Explain what is the advantage of a random access file?

0 Answers  


Explain heap and queue.

0 Answers   Aricent,


What ios diff. Between %e & %f?

3 Answers   Honeywell,


What is the use of the restrict keyword?

1 Answers  


while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.

1 Answers   TCS,


get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement

3 Answers  


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


Array is an lvalue or not?

0 Answers  


What is the acronym for ansi?

0 Answers  


What is new line escape sequence?

0 Answers  


What are the header files used in c language?

0 Answers  


Categories