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 |
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
What is the usage of the pointer in c?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
what is difference b/w extern & volatile variable??
Differentiate between the expression “++a” and “a++”?
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&height,&age); if((age<=20)&&(ht>=5)) {printf("She loves you");} else {printf("She loves you");} }
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,
please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Is main an identifier in c?
SRUCTURE PROGRAMMING