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

how to construct a simulator keeping the logical boolean gates in c

2195


Explain the use of fflush() function?

1024


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1676


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1208


Can you pass an entire structure to functions?

1076


Explain indirection?

1060


What is the difference between declaring a variable and defining a variable?

1183


Explain about the constants which help in debugging?

1306


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1019


What are the complete rules for header file searching?

1027


When is a void pointer used?

1191


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

997


Explain what are the different file extensions involved when programming in c?

1051


code for replace tabs with equivalent number of blanks

2098


What is meant by preprocessor in c?

945