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 the benefits of pointers?

594


How is new() different from malloc()?

635


How to declare an array of pointers to integer?

581


What is lambda expression c++?

576


What is the v-ptr?

639






Explain register storage specifier.

592


Describe the advantage of an external iterator.

614


What is meant by the term name mangling in c++?

517


What is #include cmath?

659


What is function overriding in c++?

606


How do you initialize a string in c++?

558


Is map sorted c++?

518


What is polymorphism in c++? Explain with an example?

607


Is the declaration of a class its interface or its implementation?

704


why and when we can declar member fuction as a private in the class?

1600