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


Please Help Members By Posting Answers For Below Questions

What are dynamic type checking?

601


What happens when the extern "c" char func (char*,waste) executes?

625


Can a program run without main?

617


What operator is used to access a struct through a pointer a) >> b) -> c) *

582


Do you know what are pure virtual functions?

636






Define a nested class. Explain how it can be useful.

623


What is the difference between an array and a list?

579


What does catch(…) mean?

604


What is copy constructor? Can we make copy constructor private in c++?

585


What is the best it certification?

575


What are inline functions? What is the syntax for defining an inline function?

570


Explain the static member function.

697


What is lambda expression c++?

568


What is c++ stringstream?

592


Is c# written in c++?

510