Strings

Q1: For the following statements will arr[3] and ptr[3] fetch the same character?
char arr[] = "AptitudeCrack";
char *ptr = "AptitudeCrack";

A Yes

B No

ANS:A - Yes

Yes, both the statements prints the same character 'i'.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.