What is the output of printf("%d")?

Answers were Sorted based on User's Feedback



What is the output of printf("%d")?..

Answer / apoorv

it will be give u garbage value....u can't be sure for d
value....
its depend on d complier which value he read recently...
and it will be a garbage....according to d programer...bcoz
he don,t knw which value has been recentyly read by d
compiler...!!

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / dipanjan m

it will print garbage value

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / wakil sheikh

output will be 0

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / shakti singh khinchi

It will print garbage value & gives warning on compilation
like "too few arguments for format".

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / sudha

it will simply print a garbage value..........

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / bheda govind

printf("%d") THAN

OUTPUT IS----0(ZIRO)

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / rahul raj

It will not compile..

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / snigdhadeb

printf("%d");
will gives the answer 0....

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / vaisakh.r

printf("%d") will printf some garbage value since there is no varible specified in it.so compiler check the argument stack check offset depending on the format specifier print whats on that location, since we can't sure about that value say it will print some garbage value

Is This Answer Correct ?    0 Yes 0 No

What is the output of printf("%d")?..

Answer / baban dongare

It will generate the garbage value..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

0 Answers  


how to explain our contribution in the project?

0 Answers   Wipro, Yahoo,


What is the use of pointer in c++ with example?

0 Answers  


What does return 0 do in c++?

0 Answers  


When the design recommends static functions?

2 Answers   Symphony,


When you overload member functions, in what ways must they differ?

0 Answers  


Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast

2 Answers   Quark,


What you know about structures in C++?

0 Answers   Agilent, ZS Associates,


What is the prototype of printf function?

0 Answers  


write a C++ programming :if the no is between 32 to 50 it will be odd.

3 Answers   NIIT,


Why c++ does not have finally?

0 Answers  


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

0 Answers  


Categories