Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Prathyusha_Majety
0
votes
1
UPPCL AE 2018:75
What is the output of the following $\text{C}$ program? #include<stdio.h> int main(void) { struct bitfields { int bits_1 : 2; int bits_2 : 4; int bits_3 : 4; int bits_4 : 3; } bit = {2, 3, 8, 7}; printf(“%d %d %d %d”, bit.bits_1, bit.bits_2, bit.bits_3, bit.bits_4 ); } $\text{-}2 \; 3 \; \text{-}8 \; \text{-}1 $ $2 \; 4 \; 4 \; 3 $ $0 \; 0 \; 0 \; 0 $ $2 \; 3 \; 8 \; 7 $
What is the output of the following $\text{C}$ program?#include<stdio.h int main(void) { struct bitfields { int bits_1 : 2; int bits_2 : 4; int bits_3 : 4; int bits_4 : ...
355
views
answered
Dec 27, 2023
Programming in C
uppcl2018
programming
programming-in-c
output
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register