What are the restrictions of a modulus operator?



What are the restrictions of a modulus operator?..

Answer / Saurendra Singh Paliwal

The modulus operator (% or remainder operator) has the following restrictions: (1) The dividend and divisor must be integers. (2) If the divisor is zero, the result is undefined. (3) The result can be either positive or negative depending on whether the divisor is greater than zero or less than zero.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What will be the outcome of the following conditional statement if the value of variable s is 10?

1 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1 Answers   TCS,


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1 Answers  


What do mean by network ?

1 Answers  


what is the difference b/w NULL and null?

3 Answers   HSBC, IBM,


Explain 'far' and 'near' pointers in c.

1 Answers  


why i join syntel?

23 Answers   ABC, Syntel, TCS,


What is maximum size of array in c?

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


Differentiate between full, complete & perfect binary trees.

1 Answers  


What are the parts of c program?

1 Answers  


What is the role of && operator in a program code?

1 Answers  


Categories