closed by
286 views
0 votes
0 votes
closed with the note: got the answer.

consider

  1. temp=1;
  2. temp+=temp*temp<<2+3;
  3. printf(“%d”,temp); // this line will print output as $33$ how??

Line number 2 can be written as: temp=temp+temp*temp<<2+3;

my doubt is: *>+>» is the order of execution according to precedence rule;

now temp= 1+1*1<<2+3;

temp=1+1<<2+3

how $33$ will come?? please someone explain this??

closed by

Related questions

1 votes
1 votes
1 answer
1
jugnu1337 asked May 10, 2022
260 views
SOURCE NAME::: UNDERSTANDING POINTER IN C (BOOK) BY YASHWANT KANETKARmy answer is C am i right?
1 votes
1 votes
0 answers
2
aakash pandey asked Apr 30, 2022
281 views
We use character array to declare string in C. So, if I declare an array likecharacter ch[ ] = {‘a’,’k’,’a’,’/o’};and try printing ch[3] like :printf(“%...
0 votes
0 votes
0 answers
3
Anirudh Kaushal asked Apr 6, 2022
191 views
#include<stdio.h struct marks { int p:3; int c:3; int m:2; }; void main() { struct marks s = {2, -6, 5}; printf("%d %d %d", s.p, s.c, s.m); }What does p:3 means here ?
0 votes
0 votes
0 answers
4
raja11sep asked Nov 8, 2021
456 views
“An Extern variable will be initialized to 0 if not initialized” is this statement correct? If yes then How it can initialize because when we write “ extern int a �...