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 full form nasa?
What is rtti in c++?
Why is polymorphism useful?
CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?
What is copy constructor? Can we make copy constructor private in c++?
Is c++ an integer?
give me an example for testing a program showing the test path .show how the test is important and complex.
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
How do you clear a set in c++?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
How can you create a virtual copy constructor?
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.