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

Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program

19 Answers   CTS, HCL, TCS,


Why is struct padding needed?

0 Answers  


How are structure passing and returning implemented?

0 Answers  


Explain the array representation of a binary tree in C.

0 Answers   Genpact,


Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female

5 Answers   Infosys, Luminous,


Create a simple code fragment that will swap the values of two variables num1 and num2.

0 Answers  


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

0 Answers  


Linked lists -- can you tell me how to check whether a linked list is circular?

0 Answers  


explain what are actual arguments?

0 Answers  


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

0 Answers  


How do I create a directory? How do I remove a directory (and its contents)?

0 Answers  


What is key word in c language?

4 Answers   ABC,


Categories