Explain modulus operator. What are the restrictions of a modulus operator?



Explain modulus operator. What are the restrictions of a modulus operator?..

Answer / Parvez Aalam

The modulus operator `%` calculates the remainder when one number is divided by another. The restriction for a modulus operator is that both operands must be integers, either signed or unsigned.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Finding first/last occurrence of a character in a string without using strchr( ) /strrchr( ) function.

2 Answers  


write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com

6 Answers  


Explain what is the stack?

1 Answers  


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

1 Answers   Lovely Professional University,


What is NULL pointer?

1 Answers   Infosys,


Write a program to swap two numbers without using a temporary variable?

1 Answers   Infosys,


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

1 Answers  


int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.

15 Answers   Global Edge,


What do header files do?

1 Answers  


how can I convert a string to a number?

1 Answers  


What is a sequential access file?

1 Answers  


Describe the modifier in c?

1 Answers  


Categories