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 |
Is c++ the hardest language?
Explain the isa and hasa class relationships. How would you implement each?
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }
Which is best c++ or java?
What is the purpose of extern storage specifier?
What are keywords in c++?
How can you quickly find the number of elements stored in a static array?
What is c++ hiding?
What is realloc() and free()? What is difference between them?
How can I disable the "echo" feature?
What is an adaptor class or wrapper class in c++?
How can you link a c++ program to c functions?