main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
Post New Answer View All Answers
What is data structure in c and its types?
What are pointers? Why are they used?
What are dangling pointers in c?
What is declaration and definition in c?
What is the difference between memcpy and memmove?
Why doesnt this code work?
What is context in c?
What is wrong with this initialization?
Give the rules for variable declaration?
find the sum of two matrices and WAP for it.
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is static and auto variables in c?
What is extern c used for?
Is c high or low level?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result