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

How can I generate floating-point random numbers?

0 Answers  


what are the compilation steps? ( i want inside the compiler )

2 Answers  


How can I rethow can I return a sequence of random numbers which dont repeat at all?

0 Answers  


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

0 Answers  


How can I read data from data files with particular formats?

0 Answers  


How does pointer work in c?

0 Answers  


number of times a digit is present in a number

0 Answers  


Explain the red-black trees?

0 Answers  


Suggesting that there can be 62 seconds in a minute?

0 Answers  


Can we add pointers together?

0 Answers  


What are Macros? What are its advantages and disadvantages?

0 Answers   TCS,


Can you write a programmer for FACTORIAL using recursion?

0 Answers   ADP,


Categories