Examveda
Examveda

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 < n; ++su, --n)
<br>
*su = ch;
<br>

A. store c throughout unsigned char s[n]

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


This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Related Questions on Arrays and Strings