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

Answer Posted / kanchan

%d prints integer value but we have to provide corresponding variable with it i.e..
printf("%d" n) here it prints value of n which is of integer type
printf("%d") will create a garbage value b'coz copiler is unknown of associated variable.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is setw manipulator in c++?

796


Where Malloc(), Calloc(), and realloc() does get memory?

805


Can I make ios apps with c++?

761


What is the best free c++ compiler for windows?

815


Define the operators that can be used with a pointer.

785


Should the this pointer can be used in the constructor?

761


Why is c++ considered difficult?

824


Is dev c++ a good compiler?

701


How to declare a function pointer?

760


What is atoi?

729


What is c++ try block?

795


What is enum c++?

852


How do I use turbo c++?

720


Explain what are single and multiple inheritances in c++?

730


Is c++ vector dynamic?

736