what will be the output of this program........
main()
{
int a=2,b=4,c=6;
printf("%d");
}
why it gives the value of third variable.

Answer Posted / lilly

u get garbage value!!!

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the concatenation operator?

614


What is the purpose of sprintf?

625


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

587


What is a protocol in c?

561


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1633






What are the features of the c language?

652


How can I implement a delay, or time a users response, with sub-second resolution?

631


What does the file stdio.h contain?

608


What is the advantage of using #define to declare a constant?

625


What does c in a circle mean?

587


Are there constructors in c?

600


Can a pointer be null?

569


Do you know what are bitwise shift operators in c programming?

589


How do you declare a variable that will hold string values?

672


What is getch () for?

681