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

How many bytes are occupied by near, far and huge pointers (dos)?

1131


What is c method?

953


I have a varargs function which accepts a float parameter?

1013


What is the use of a conditional inclusion statement in C?

1028


What is auto keyword in c?

1172


What is oops c?

1146


What is the difference between single charater constant and string constant?

1051


Are local variables initialized to zero by default in c?

999


Why flag is used in c?

1082


explain what are actual arguments?

1049


What are the two forms of #include directive?

1123


How does placing some code lines between the comment symbol help in debugging the code?

961


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2029


What's a good way to check for "close enough" floating-point equality?

1111


What is the difference between array_name and &array_name?

1256