Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions