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

What is data structure in c language?

599


What is "Hungarian Notation"?

633


What are the types of unary operators?

656


What is the method to save data in stack data structure type?

600


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

693






Explain how can I read and write comma-delimited text?

648


What is integer constants?

615


What is a sequential access file?

644


What oops means?

579


Explain what is the benefit of using enum to declare a constant?

586


Differentiate between static and dynamic modeling.

613


Write a code to generate divisors of an integer?

635


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1849


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

743


How can I read and write comma-delimited text?

616