What is the output of printf("%d")?

Answer Posted / vaisakh.r

printf("%d") will printf some garbage value since there is no varible specified in it.so compiler check the argument stack check offset depending on the format specifier print whats on that location, since we can't sure about that value say it will print some garbage value

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of c++ over c?

553


Is there any function that can skip certain number of characters present in the input stream?

577


What are the two types of polymorphism?

585


What is #include cmath?

655


What is a literal in c++?

558






Differentiate between a pointer and a reference with respect to c++.

693


How do we balance an AVL Tree in C++?

626


What is a lambda function c++?

547


What are register variables?

639


What is meant by const_cast?

642


Is it possible to use a new for the reallocation of pointers ?

589


Can non-public members of another instance of the class be retrieved by the method of the same class?

602


Show the declaration for a static function pointer.

570


How do you establish a has-a relationship?

604


Write bites in Turbo c++ Header ("Include") Files.

676