int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p?
Answer Posted / vignesh1988i
a=2 and b=3;;;; why it dosent print the value of 'c' is...
we didnt specify any format specifications....... so we wont
get c value...
but if we have given the format specifications and if we
dont give any argument to it... the garbage value will be
your o/p
printf("%d");
the o/p is :: some garbage values....
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain can you assign a different address to an array tag?
What is actual argument?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What are the Advantages of using macro
Did c have any year 2000 problems?
What is chain pointer in c?
What is the difference between printf and scanf in c?
What is queue in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Why n++ execute faster than n+1 ?
What are the two forms of #include directive?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are header files and what are its uses in C programming?
Why are all header files not declared in every c program?
How can I copy just a portion of a string?