main() {
int x=2, y=4
if ((x==2||y==4)
x++
y++
if (y==4+1)
{
x=x+y;
}
y++;
printf("The values of x and y are %d and %d."x,y);
}
What is the output?
Answer Posted / ganesh bankar
There is a errsor at compile time because some statements
are not terminated by ";".
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
praagnovation
Is there a way to switch on strings?
What is cohesion in c?
How do I convert a string to all upper or lower case?
What are the types of assignment statements?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
write a c program in such a way that if we enter the today date the output should be next day's date.
Write a simple code fragment that will check if a number is positive or negative.
Is c dynamically typed?
What is the difference between arrays and pointers?
Are the variables argc and argv are local to main?
What are the storage classes in C?
What is time complexity c?
What is a structure member in c?
What are the types of operators in c?