Card 10 / 67: To write character array char mystr[50] = "string" , i = 0;
A)
len = strlen (mystr); for ( i = 0 ; i < len ; i++ ) putch(mystr [i] );
B)
for ( i = 0 ; i < 50 ; i++ ) putch(mystr [i] );
C)
Both correct
Answer:
A) len = strlen (mystr); for ( i = 0 ; i < len ; i++ ) putch(mystr [i] );
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |