View difference between Paste ID: VakiXpgq and bVjfq5yG
SHOW: | | - or go back to the newest paste.
1
#include<stdio.h>
2
//example of array size determination:  sizeof(list) will NOT work by itself
3
int main()
4
{
5
  int i=0;
6
  char name[] = "cool";
7
  int list[] = {1,2,3,4,5,6,7,8};
8
9-
   //printf("");
9+
10-
  for(i=0; i<5; i++)
10+
11-
    printf("the characters are %x \n", name[i]); 
11+
12
  return 0;
13-
  printf("the character for termination of strings: %d  \n",'\0');
13+