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);
}

Answers were Sorted based on User's Feedback



what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

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

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / gaurav

3 3 4

Is This Answer Correct ?    1 Yes 9 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / vignesh1988i

the output will be 3 3 0


thank u

Is This Answer Correct ?    5 Yes 18 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / sudarshan

4 3 -1 this will be the output of this program

Is This Answer Correct ?    0 Yes 17 No

Post New Answer

More C Interview Questions

What is c definition?

0 Answers  


Explain about the constants which help in debugging?

0 Answers  


Why c is faster than c++?

0 Answers  


can v write main() { main(); } Is it true?

6 Answers  


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

0 Answers  


What is identifiers in c with examples?

0 Answers  


given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)

6 Answers   amu, TCS,


main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


difference between ordinary variable and pointer in C?

2 Answers  


What is data structure in c and its types?

0 Answers  


i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }

2 Answers  


c language interview questions & answer

0 Answers  


Categories