retagged by
2,919 views

1 Answer

0 votes
0 votes

could have gone with 12 .

Struct{

int a //4B

char b //1B

float c //4B
}

 


//max allocation based on instruction sequence,4+1+4 which is allocated as 4+4+4 = 12B

10 being the nearest to the answer.

*Edit 15th Jan 2023 ,16:20
GNU-GCC- version 7.5.0 – C language

You can see the answer is 12B

edited by

Related questions

2 votes
2 votes
3 answers
1
Laahithyaa VS asked Sep 9, 2023
937 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...
10 votes
10 votes
1 answer
2
Arjun asked Nov 17, 2014
3,324 views
main() { int i =300; char *ptr=&i; *++ptr=2; printf("%d",i); }
0 votes
0 votes
1 answer
4
Karthik Akula asked Oct 29, 2016
4,097 views
what is the output for the below program ?main() { float x=1/2; float y=1/2.0; printf("%f, %f", x,y); }A) 0.500000, 0.500000B) 0.500000, 0.000000C) 0.000000, 0.000000D) 0...