main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answers were Sorted based on User's Feedback
Answer / vineetha
tell this answer and mail to this id vachika90@gmail.com
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / sanjay bhosale
statement a=b<<a + b>>2;
will be treated as
a=(b<<(a+b))>>2;
and gives output 32.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / a.jayashree
ans is=10;
if its wrong give me right ans to jshree20@gmail.com
| Is This Answer Correct ? | 0 Yes | 2 No |
Explain how can I write functions that take a variable number of arguments?
what information does the header files contain?
6 Answers BSNL, Cisco, GDA Technologies,
Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.
1 Answers College School Exams Tests, Wipro,
What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
What is floating point constants?
What is self-referential structure in c programming?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Explain logical errors? Compare with syntax errors.
Program to write some contents into a file using file operations with proper error messages.
What is the general form of #line preprocessor?
Can anyone tell what is stack overflow? what precaution we should take?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,