Programming In C Practical 8

Question 1
Write a output of the following program.
Program.cpp
C
				#include<stdio.h>
#include<conio.h>

void main()
{
	clrscr();
	int i = 32,j =65,k,l,m,n,o,p; 
	k = i|35; 
	l = ~k ; 
	m = i&j ;
	n = j^32;
	o = j<<2; 
	p = i>>5;
	printf("\nk = %d ,l = %d ,m = %d",k,l,m) ;
	printf("\nn = %d ,o = %d ,p = %d",n,o,p) ;
	getch();
}
			
Output

Leave a Comment

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