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
What is data structure in c language?
What is "Hungarian Notation"?
What are the types of unary operators?
What is the method to save data in stack data structure type?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Explain how can I read and write comma-delimited text?
What is integer constants?
What is a sequential access file?
What oops means?
Explain what is the benefit of using enum to declare a constant?
Differentiate between static and dynamic modeling.
Write a code to generate divisors of an integer?
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.
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How can I read and write comma-delimited text?