Gate 2017 pyq C Programming | Consider the following C program. void printlength (char *s, char *t)
Автор: Gate CS pyqs - the other way [Eng]
Загружено: 2022-11-06
Просмотров: 987
Описание:
Consider the following C program.
#include stdio.h
#include string.h
void printlength (char *s, char *t)
{
unsigned int c = 0;
int len = ((strlen (s) - strlen (t)) greater_than c) ? strlen (s) : strlen (t);
printf("%d\n", 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 size_t, which is an unsigned int
.
The output of the program is _________.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: