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
How can I read in an object file and jump to locations in it?
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
What is the use of structure padding in c?
What is wrong in this statement? scanf(“%d”,whatnumber);
What are the different types of linkage exist in c?
Write a program to reverse a given number in c?
What is meant by realloc()?
What is the difference between mpi and openmp?
How can I trap or ignore keyboard interrupts like control-c?
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?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
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
What is a constant?
Explain what are the __date__ and __time__ preprocessor commands?
What is the importance of c in your views?