C Puzzle
What is the output of the following code snippet?
#include <stdio.h>
void main(){
printf("%d",(12%2));
}
Output:
0
Explanation:
% is the mod operator in c, which is used to find remainder of an integer division.
#include <stdio.h>
void main(){
printf("%d",(12%2));
}
Output:
0
Explanation:
% is the mod operator in c, which is used to find remainder of an integer division.
Thanks
ReplyDeleteKalakuringa kalpana
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteExcellent
ReplyDelete