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

Answer Posted / hafizul

the value at the top of the stack will be printed.
if some value is assigned to some variable before dis stmnt
then that value will be printed, otherwise some garbage
value(that r at the top of the stack) will be printed.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one between if-else and switch is more efficient?

616


Is c++ double?

580


what are Access specifiers in C++ class? What are the types?

641


What is helper in c++?

582


what do you mean by volatile variable?

600






How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

651


What is the use of volatile variable?

609


Can a program run without main?

644


What is prototype for that c string function?

702


Can c++ do everything c can?

612


Explain this pointer?

593


What is auto type c++?

637


What do manipulators do?

587


Will this c++ program execute or not?

618


What is the use of this pointer in c++?

580