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

What is string function in c?

1052


What is p in text message?

1040


How to compare array with pointer in c?

1170


what is the difference between class and unio?

2421


How do you do dynamic memory allocation in C applications?

1141


What is difference between static and global variable in c?

1106


Is main is user defined function?

1216


Explain the red-black trees?

1205


What is extern storage class in c?

1059


pierrot's divisor program using c or c++ code

2286


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1133


What is the use of a conditional inclusion statement in C?

1117


What is a pointer in c?

1698


What are the keywords in c?

1177


Is anything faster than c?

1065