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
Explain what is a const pointer?
number of times a digit is present in a number
How do you list a file’s date and time?
What oops means?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is restrict keyword in c?
Explain b+ tree?
What are the advantages and disadvantages of c language?
how to count no of words,characters,lines in a paragraph.
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
How do you write a program which produces its own source code as output?
Explain the use of #pragma exit?
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.
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
What is a macro in c preprocessor?