Consider the following C program. #include #include void printlength(char *s, char *t) unsigned int c = 0; int len = ((strlen(s) - strlen(t)) > c) ? strlen(s): strlen(t); printf("%d ", len); void main() char *x = "abc"; char *y = "defgh"; printlength(x,y); Recall that strlen is defined in string.h as returning a value of type sizet , which is an unsigned int . The output of the program is …
Topic-wise GATE CS PYQs with verified steps
