Mega Code Archive

 
Categories / C / Pointer
 

Arrays and pointers taken further

#include <stdio.h> void main() {    char s[] = "a string";    printf("\n         value of second element: %c\n", s[1]);    printf("value of s after adding 1: %c\n", *(s + 1)); }