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


Please Help Members By Posting Answers For Below Questions

Why main function is special give two reasons?

950


Explain high-order and low-order bytes.

669


show how link list can be used to repersent the following polynomial i) 5x+2

1678


How can I call fortran?

644


What is the difference between array and pointer?

569






What are nested functions in c?

566


Why is not a pointer null after calling free?

598


How do you determine a file’s attributes?

602


Differentiate fundamental data types and derived data types in C.

618


What is include directive in c?

646


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

921


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1425


What is nested structure?

576


Where are the auto variables stored?

626


What is p in text message?

540