[ create a new paste ] login | about

Link: http://codepad.org/9FO7ErP4    [ raw code | output | fork | 1 comment ]

C, pasted on Mar 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <string.h>
#include <stdio.h>

main() {

  char str[] = "hello";
  int i;
  int strLength = strlen(str);

  for (i = 0; i < strLength; i++) {

  printf("[%c]", str[i]);

  }


  return 0;
}


Output:
1
[h][e][l][l][o]


Create a new paste based on this one


Comments:
posted by sureshdasari on Sep 10
reply