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

pgm to find middle element of linklist(in efficent manner)

4 Answers   Huawei,


what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ; display( ) ; } display( ) { printf ( "\nFools too use C!" ) ; main( ) ; }

3 Answers  


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

0 Answers  


write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 Answers  


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100

1 Answers  






How can I read a binary data file properly?

0 Answers  


Write c-code for 5+55+555+5555+55555+555555+5555555. Output will be it's answer...

4 Answers   TCS,


Why main function is special give two reasons?

0 Answers  


what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits

2 Answers   Wipro,


write a program in c to read array check element is present or not?

1 Answers  


Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.

2 Answers   Infosys,


What is the difference between arrays and pointers?

0 Answers  


Categories