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 / yogesh bansal

yes, correct answer is 3 3 1

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1802


What is the role of && operator in a program code?

568


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

592


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

662


Which is best linux os?

565






Is there any demerits of using pointer?

631


write a program to concatenation the string using switch case?

1560


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

721


How do I create a directory? How do I remove a directory (and its contents)?

608


What are the rules for the identifier?

673


What is the difference between struct and typedef struct in c?

659


int far *near * p; means

3123


Write a code on reverse string and its complexity.

609


Is there a way to switch on strings?

621


What are inbuilt functions in c?

560