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


Please Help Members By Posting Answers For Below Questions

#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); }

759


Can we access the array using a pointer in c language?

554


What is declaration and definition in c?

517


What is the difference between typedef and #define?

531


What does malloc () calloc () realloc () free () do?

548






a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


What are the ways to a null pointer can use in c programming language?

582


Write a program to reverse a given number in c?

586


What is a floating point in c?

591


what are # pragma staments?

1618


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

590


Explain how can I open a file so that other programs can update it at the same time?

581


What are header files in c?

605


List the difference between a 'copy constructor' and a 'assignment operator' in C?

630


Explain a file operation in C with an example.

652