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


a=5
a=a++/++a

Answers were Sorted based on User's Feedback



a=5 a=a++/++a..

Answer / rukmanee

a=.83

Is This Answer Correct ?    1 Yes 5 No

a=5 a=a++/++a..

Answer / purvi

a=-12

Is This Answer Correct ?    1 Yes 7 No

a=5 a=a++/++a..

Answer / aa

A

Is This Answer Correct ?    0 Yes 6 No

a=5 a=a++/++a..

Answer / abhi

answer is 6 because
a=a++/++a
i.e.=
5=5/5+1
hence 6=5/6
5*6=5
30/5=6
reason is that the post increment increment after process
but pre increment increment before the process so th value
is increment before the process

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

i want to know the procedure of qualcomm for getting a job through offcampus

0 Answers   HCL,


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


what is c?

13 Answers   Tech Mahindra,


What are different types of variables in c?

0 Answers  


Difference between for loop and while loop?

1 Answers  


Why void main is used in c?

0 Answers  


How can I make it pause before closing the program output window?

0 Answers  


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


Explain what is a program flowchart and explain how does it help in writing a program?

0 Answers  


HOW TO SWAP TWO NOS IN ONE STEP?

16 Answers   Satyam,


#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?

7 Answers   Intel,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


Categories