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

Why do we use iterators?

806


Can malloc be used in c++?

770


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

774


What do you mean by stack unwinding in c++?

929


How to access a variable of the structure?

753






Which software is best for coding?

768


Does c++ have foreach?

725


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1984


What is the difference between the functions rand(), random(), srand() and randomize()?

935


What is Destructor in C++?

914


What do you mean by static variables?

816


What is a storage class used in c++?

796


What are the three forms of cin.get() and what are their differences?

819


Should the this pointer can be used in the constructor?

752


Can I learn c++ without learning c?

744