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



write a c program to print the next of a particular no without using the arithmetic operator or loo..

Answer / 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

More C Interview Questions

Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

3 Answers   NDS,


How many bytes is a struct in c?

0 Answers  


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

0 Answers   HP,


What is define directive?

0 Answers  


what is an inline function?

2 Answers   TCS,






What is an expression?

0 Answers  


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

0 Answers  


accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input

1 Answers  


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

2 Answers   CTC,


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  


why do we use pointer instead directly acessing the data?

2 Answers  


Why clrscr is used after variable declaration?

0 Answers  


Categories