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

What is keyword with example?

1074


What is main () in c?

1079


FILE PROGRAMMING

2248


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3978


When should I declare a function?

1148


Process by which one bit pattern in to another by bit wise operation is?

1173


what is the role you expect in software industry?

2154


What is meant by type casting?

1060


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6876


Is c procedural or functional?

1048


How can I ensure that integer arithmetic doesnt overflow?

1177


Write a program to generate random numbers in c?

1108


Differentiate between #include<...> and #include '...'

1066


What is calloc()?

1080


What is the sizeof () a pointer?

999