What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
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 |
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 |
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 function overloading in C++?
List out some of the object-oriented methodologies?
What kind of jobs can I get with c++?
give me some class & objects examples?
Is c++ the best programming language?
What is encapsulation in c++ with example?
Write about an iterator class?
What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
What do the keywords volatile and mean mutable?
Why the usage of pointers in C++ is not recommended ?
what is oops and list its features in c++?
What is abstract keyword in c++?