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 |
How are portions of a program disabled in demo versions?
What is the purpose of the preprocessor directive error?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Why is c known as a mother language?
#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
How do you write a program which produces its own source code as its output?
Is it cc or c in a letter?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Is it possible to initialize a variable at the time it was declared?
What compilation do?
7 Answers Geometric Software, Infosys,
Which built-in library function can be used to match a patter from the string?