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

Explain what is a const pointer?

1035


number of times a digit is present in a number

1988


How do you list a file’s date and time?

1020


What oops means?

930


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1330


What is restrict keyword in c?

1049


Explain b+ tree?

1006


What are the advantages and disadvantages of c language?

961


how to count no of words,characters,lines in a paragraph.

4376


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2076


How do you write a program which produces its own source code as output?

1058


Explain the use of #pragma exit?

1110


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4999


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1146


What is a macro in c preprocessor?

1050