#Meta-Wlp: #Macro: TITLE wlp: Learn C (III) p. 5
char
is the data type character
int
is the data type integer
char *
is a pointer to character, or more precisely, a
reference to character.
#include<stdio.h> int main(){ char * s ; /* declare s a reference to character */ char * t ; /* declare t a reference to character */ s = "I am a string - " ; t = "but what am I?" ; printf(s) ; while ( *t ) { printf ("%c",*t) ; t += 1 ; } printf("\n") ; }Is this another way to get exactly the same output?