main()
{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}
Answers were Sorted based on User's Feedback
Answer / sorab
error becoz in program written as printf(%d",x)
actually it written like that printf("%d",x);
then the value 6 is print on screen
thanks ....
| Is This Answer Correct ? | 36 Yes | 7 No |
Answer / krs
"intx=2" must be "int x=2".This is First error.
secondly there is a syntax error in printf();
So there is compile time error due to this code execution.
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / dhananjay
x=6 beacuse x will contain the latest value.
| Is This Answer Correct ? | 21 Yes | 14 No |
Answer / nithya
output:
undefined symbol 'intx'
undefined symbol 'y'
undefined symbol 'z'
syntax error 'printf(%d",x)'
the above code will be change
main()
{
int x=2,y=6,z=6;
x=y=z;
printf("%d",x);
}
output:
warning error:y assign value not used
6
| Is This Answer Correct ? | 5 Yes | 0 No |
What will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }
what is inline function?
What is Heap?
What are global variables and explain how do you declare them?
How can we allocate array or structure bigger than 64kb?
What are qualifiers?
What is the difference between union and anonymous union?
What does the c in ctime mean?
the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; }
What does sizeof int return?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
0 Answers Aspire, Infogain, TISL,