closed by
489 views
0 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??

Position:
Show:

Related questions

0 0 votes
4 4 answers
574
574 views
SUBRATA_DAS 2 asked Feb 26, 2025
574 views
int a = -1, b = 1;int c = ++a && b ++;printf("%d, %d, %d",a,b,c);give me the ans with appropriate reason. according to me increment operator have higher precedence, then ...
0 0 votes
0 0 answers
462
462 views
lalitver10 asked Aug 14, 2024
462 views
#include <stdio.h>int main(){ int x = 3; int z = (++x)+ (x = 10); printf("%d", z); return 0;} 
0 0 votes
1 1 answer
633
633 views
srijankarak_123 asked May 7, 2024
633 views
let suppose address of first index of array is n and size of each block of array is u. then the index of second element is a+u.let suppose the array has m elements.what w...
1 1 vote
1 1 answer
585
585 views
jugnu1337 asked May 10, 2022
585 views
SOURCE NAME::: UNDERSTANDING POINTER IN C (BOOK) BY YASHWANT KANETKARmy answer is C am i right?