Question: 1.What will be output if you will compile and execute the following c code? struct markst int p:3; int c:3; int m:2; void main) struct

1.What will be output if you will compile and execute the following c code? struct markst int p:3; int c:3; int m:2; void main) struct marks s=(2,6,5); printf("%d %d %d",s-Ds.c,s.m); 2-6 5 2-6 1 2 21 Compiler error Ans: C Explanation Binary value of 2: 00000010 (Select three two bit) Binary value of 6: 00000110 (Select last three bit) Binary value of 5: 00000101 (Select last two bit) 2.A function that uses variable types is called Overloaded a template function a variable function a virtual function Ans: B 3.The OS of a computer may periodically collect all the free memory space to form contiguous block of free space. This is called Concatenation Garbage collection
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
