main()
{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}
Answer Posted / 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 |
Post New Answer View All Answers
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
#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 is the purpose of scanf() and printf() functions?
What is a pointer in c plus plus?
What is 2c dna?
What is variable in c example?
How many types of arrays are there in c?
What does == mean in texting?
Explain how do you override a defined macro?
What is a c token and types of c tokens?
What are the valid places to have keyword “break”?
Can we add pointers together?
Can you please explain the difference between exit() and _exit() function?
Do variables need to be initialized?
how should functions be apportioned among source files?