what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}
Answer Posted / poorna
Ans:3 3 1
bcoz
z=4-- -3; z=4-3;
z=1;
and x=3
there fore answer is 3 3 1
| Is This Answer Correct ? | 42 Yes | 5 No |
Post New Answer View All Answers
What are # preprocessor operator in c?
Who is the founder of c language?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is volatile variable how do you declare it?
What's the difference between constant char *p and char * constant p?
What is the best way to store flag values in a program?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Can you think of a logic behind the game minesweeper.
What is the scope of local variable in c?
What is ponter?
What is the code for 3 questions and answer check in VisualBasic.Net?
What does typedef struct mean?
What are the loops in c?
Explain bit masking in c?
Write a program to print numbers from 1 to 100 without using loop in c?