Explain modulus operator.



Explain modulus operator...

Answer / Santanu Mondal

The "modulus operator" (%) computes the remainder after division. For example, if a is 17 and b is 5, a % b returns 2 because 17 divided by 5 equals 3 with a remainder of 2.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Why clrscr is used after variable declaration?

1 Answers  


What is define directive?

1 Answers  


who is the father of C Language?

20 Answers   CTS, UST,


What is a far pointer in c?

1 Answers  


how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

19 Answers   RMSI,


How can I manipulate strings of multibyte characters?

1 Answers  


Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture,


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1 Answers   Wilco,


How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


What is difference between structure and union?

1 Answers  


hi , please send me NIC written test papers to sbabavalli@gmail.com

0 Answers   NIC,


What is difference between array and pointer in c?

1 Answers  


Categories