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 |
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
WHAT IS MEANT BY LIFE?
What is logical error?
code for bubble sort?
where do we use volatile keyword?
how many errors in c explain deply
write a program to sort the elements in a given array in c language
what is the value of b if a=5; b=++a + ++a
31 Answers Infosys, TCS, Tech Mahindra,
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }
27 Answers Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,
Program to write some contents into a file using file operations with proper error messages.