Advertisement
touhid_xml

Single Dimentional Array in C

Jul 13th, 2015
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int numbers[4] = { 10, 20, 30, 40};
  3. char characters[3] = {'a','b','c'};
  4. char country[10] = {'B','A','N','G','L','A','D','E','S','H',"\0"};
  5. int main(){
  6. printf("%d\n",numbers[2]);
  7. printf("%c \n",characters[0]);
  8. printf("%s",country);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement