Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / m.kirthika

given z=x-- -y
therefore x--=4-1=3;
and given y=3;
so z =3-3=0;
but x doesn't change its value.
so the correct answer is 430

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a char in c?

1042


What is pointer & why it is used?

1174


What is the difference between null pointer and wild pointer?

1252


what is the basis for selection of arrays or pointers as data structure in a program

4345


What does. int *x[](); means ?

1139


What is meant by preprocessor in c?

1083


Are there constructors in c?

1063


What does dm mean sexually?

1386


What is use of #include in c?

1224


What functions are in conio h?

1266


What is nested structure?

1101


What is hash table in c?

1078


Difference between constant pointer and pointer to a constant.

1230


how can I convert a string to a number?

1141


Explain argument and its types.

1117