Vidyalelo
C Programming · Q90

Arrays and Strings

Programming · C Programming · question 90

Q90

What will be the output of the following C code? void *memset(void *c, int c, size-t n) unsigned char ch = c; unsigned char *su; for (su = s; 0 *su = ch;

A.
store c throughout unsigned char s[n]
Answer
B.
store c throughout signed char s[n]
C.
find first occurrence of c in s[n]
D.
find last occurrence of c in s[n]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board