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

What are global variables and how do you declare them?

0 Answers  


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

0 Answers  


what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


how to convert binary to decimal and decimal to binary in C lanaguage

7 Answers   BPO, Far East Promotions, IBM, RBS,


What is the full form of getch?

0 Answers  






plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 Answers  


What is the difference between CV and Resume ?

2 Answers  


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

0 Answers   Infosys,


What is the use of getchar functions?

0 Answers  


What is the use of the function in c?

0 Answers  


Why is #define used?

0 Answers  


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

0 Answers  


Categories