Solution for Exercise 18-5
ex1805
#include <stdio.h> int main() { struct robot { int alive; char name[5]; int xpos; int ypos; int strength; }; printf("The evil robot struct size is %lu\n", sizeof(struct robot)); return(0); }
Output
The evil robot struct size is 24.
Copyright © 1997-2024 by QPBC.
All rights reserved