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
what is the difference between overloading & overriding? give example.
Define the process of error-handling in case of constructor failure?
When is the copy constructor called?
What are the various arithmetic operators in c++?
What do you mean by public protected and private in c++?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Explain what data encapsulation is in c++?
Why struct is used in c++?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Write a program to find the Fibonacci series recursively.
What is the use of main function in c++?
Difference between a copy constructor and an assignment operator.
What is the purpose of ios::basefield in the following statement?
What is :: operator in c++?