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.
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
6
because it'll print the last garbage value stored.
| Is This Answer Correct ? | 3 Yes | 1 No |
What is indirect recursion? give an example?
what is a pointer
4 Answers Bank Of America, TCS,
What is C++
How to receive strings with spaces in scanf()
How main function is called in c?
a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'
write a program to display reverse of a number using for loop?
How can I call a function with an argument list built up at run time?
What is difference between stdio h and conio h?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
How can I invoke another program from within a C program?
Explain what is wrong with this statement? Myname = ?robin?;