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

write a c program to print the next of a particular no
without using the arithmetic operator or looping statements?

Answer Posted / sumanta mahapatra

we can do dis using increment operator....
main()
{
int x,y;
x=5;
y=++x;
printf("%d",y);
}

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why static is used in c?

1090


Why should I use standard library functions instead of writing my own?

1264


How does pointer work in c?

1121


What is a static variable in c?

1113


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1106


Explain what are linked list?

1043


Tell us the use of fflush() function in c language?

1138


How do I get a null pointer in my programs?

1110


What are types of functions?

1036


What is the purpose of the preprocessor directive error?

1264


Why isn't any of this standardized in c? Any real program has to do some of these things.

1201


What is #define in c?

1045


What is double pointer in c?

1038


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2179


What is difference between %d and %i in c?

1235