C Program To Show The Use Of Division C Shorthand Operator.

Q11. Write a C program to show the use of division C shorthand operator.


#include<stdio.h> //standard input/output header file

#include<conio.h> //for clrscr()


int main()


int m;


clrscr(); //for clearing the screen



m/=2; //equivalent to m=m/2;


printf(“\n The value of M is %d.”,m);


getch(); //holds the screen until any key is pressed

return 0; //makes main() finish




The value of M is 5.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: