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
Write a program for finding factorial of a number.
What is scope and lifetime of a variable in c?
what is stack , heap ,code segment,and data segment
What are the types of pointers?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is sizeof array in c?
What is int main () in c?
What is pointer & why it is used?
Do you have any idea about the use of "auto" keyword?
what are enumerations in C
What is the difference between the expression “++a” and “a++”?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Is null always defined as 0(zero)?
Can a pointer point to null?
Why doesnt long int work?