main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}

Answer Posted / aravind

It shows syntax error because relational operators are used only for checking conditions.

Is This Answer Correct ?    8 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I read in an object file and jump to locations in it?

777


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

815


What is the use of structure padding in c?

788


What is wrong in this statement? scanf(“%d”,whatnumber);

961


What are the different types of linkage exist in c?

772


Write a program to reverse a given number in c?

764


What is meant by realloc()?

882


What is the difference between mpi and openmp?

971


How can I trap or ignore keyboard interrupts like control-c?

806


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1719


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1728


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1793


What is a constant?

804


Explain what are the __date__ and __time__ preprocessor commands?

845


What is the importance of c in your views?

795