int ListOfNumbers[50];
ThirdNumber = ListOfNumbers[2]; ListOfNumbers[5] = 100;
int TopTen[10] = {0,1,2,3,4,5,6,7,8,9};
char Name[32] = "Geoff Sutcliffe";
int Data[10] = {};initialises the entire array to 0/garbage.
int Data[] = {1,2,3,4,5,6};defines an array of size 6 and
char Error[] = "Error\n";defines an array of size 7.
char Name[50];
char FirstName[50],LastName[50],FullName[100]; FirstName = "Arnold"; //----Illegal LastName = "Schwarznegger"; //----Illegal FullName = "Mr"+FirstName+LastName; //----Illegal
printf("%s",name);
float Data[4][3] = {{1},{2},{3},{4}};initilises the "first column" of data to 1,2,3,4 and the rest to 0 or garbage.
prog5rev | prog5revto see if an exact copy of the original input is recreated.
length 1 : 10 occurrences length 2 : 19 occurrences length 3 : 127 occurrences length 4 : 0 occurrences length 5 : 18 occurrences ....
char *cat = "The cat sat"; n = replace(cat);should set cat to "The-cat-sat" and n to 2.
The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.
char *String1; char String2[128];