Last Updated :
20 Feb, 2019
Consider the following code?
#include
#include
void fun(char *arr)
{
int i;
unsigned int n = strlen(arr);
for (i=0; i<5; i++)
printf(\"%c \", arr[i]);
}
int main()
{
char arr[] = {\'g\', \'e\', \'e\', \'k\', \'s\', \'q\', \'u\', \'i\', \'z\'};
fun(arr);
return 0;
}
[/sourcecode]
What will be the length of characters that will be printed as the output?
(A) 5
(B) 9
(C) 11
(D) Error
(E) None of these
Answer: (C)
Explanation:
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...