What will be the output of the following code?
#include <stdio.h>
#include <string.h>
int main()
{
struct mystruct{
char *name;
unsigned int age;
};
struct mystruct st1 = {"Ram", 12};
printf("%lu %u", strlen(st1.name), st1.age);
}
- 4 12
- 3 12
- compile error
- run time error