What is the output of printf("%d")?
Answer Posted / cooooooool bipul
Hey people
It will not give any syntax error more specifically.. it
will not give any type of error..
The output depends on the compiler u r using...
if it is GCC of linux then O/p== garbage value
there are compilers which will give the last integer value
assigned..
example...
i=30;
printf("%d");
will give ouput 30... but for Gcc it will be garbage value.
| Is This Answer Correct ? | 43 Yes | 8 No |
Post New Answer View All Answers
Explain one-definition rule (odr).
How are virtual functions implemented in c++?
What is the difference between struct and class?
Which of the following is evaluated first: a) && b) || c) !
What are the benefits of pointers?
What it is and how it might be called (2 methods).
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is difference between c++ 11 and c++ 14?
What are the types of pointer?
Can you explicitly call a destructor on a local variable?
What is a constructor in c++ with example?
What are the various arithmetic operators in c++?
What is type of 'this' pointer?
Is multimap sorted c++?
How do you print a string on the printer?