Question: (c programing) what will be happen when the code is run? what will the output be? Does this program give the same result on every

(c programing) what will be happen when the code is run? what will the output be? 

Does this program give the same result on every computer system? Briefly explain.

#include

int main()

{ int a = -2;

printf("%x", a>>3);

return 0;

}

 4) What happens when the code is run? Does this program give the same result on its own computer system? Briefly explain.

#include

#define SQUARE(a) (a)*(a)

int main() {

int x = 3;

printf("%d ", SQUARE(++x));

return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!