What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / guest
it is used to print one integer data type value.
| Is This Answer Correct ? | 90 Yes | 46 No |
Answer / 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 |
Answer / anand
it will print some value currently on top of the stack
| Is This Answer Correct ? | 20 Yes | 7 No |
What is the Diffrence between a "assignment operator" and a "copy constructor"?
What does new in c++ do?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What are references in c++? What is a local reference?
How the programmer of a class should decide whether to declare member function or a friend function?
What is called array?
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
Can you sort a set c++?
What do you mean by inheritance in c++? Explain its types.
What are the basics of classifying different storage types, why?
2 Answers Astergate, Symphony,
Explain storage qualifiers in c++.
What is purpose of new operator?