int x=5;
printf("%d%d%d",x,x<<2,x>>2);

Answer Posted / sunil gupta

x=5
x<<2=20
x>>2=1

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1855


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

805


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2018


What are the storage classes in C?

619


What is the most efficient way to store flag values?

678






stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1844


how to introdu5ce my self in serco

1520


Explain what is a 'locale'?

579


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

582


What is return type in c?

635


Explain how are portions of a program disabled in demo versions?

647


Should I learn c before c++?

593


What are the benefits of organizational structure?

566


Tell me about low level programming languages.

636


Can a pointer point to null?

582