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 are the steps in the development cycle?

615


What is microsoft c++ redistributable?

616


What is anonymous object in c++?

632


How are Structure passing and returning implemented by the compiler?

601


If dog is a friend of boy, is boy a friend of dog?

575






what are the iterator and generic algorithms.

1485


Do the names of parameters have to agree in the prototype, definition, and call to the function?

601


Why is main an int?

528


Which programming language should I learn first?

581


How do you write a function that can reverse a linked-list?

576


What is meant by iomanip in c++?

612


What is endl c++?

606


which of the following is not an secondary constant a) array b) real c) union

1266


Why do we use using namespace std in c++?

604


Is eclipse good for c++?

540