C examples for String:char array
What will this program print? char array and pointer
#include <stdio.h> #include <string.h> int main(void) { char food[] = "test test"; char *ptr; //from www . j a v a2s . com ptr = food + strlen(food); while (--ptr >= food) puts(ptr); return 0; }