<< Prev Question Next Question >>

Question 9/17

What happens if you try to compile and run this program?
#include <stdio.h>
#include <string.h>
struct STR {
int i;
char c[20];
float f;
};
int main (int argc, char *argv[]) {
struct STR str = { 1, "Hello", 3 };
printf("%d", str.i + strlen(str.c));
return 0;
}
Choose the right answer:

LEAVE A REPLY

Your email address will not be published. Required fields are marked *