[ create a new paste ] login | about

Link: http://codepad.org/hGFFjYgX    [ raw code | output | fork ]

C, pasted on Jan 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>

int main()
{

 char arr[15] = "Monkey"
 char a1[] = "Donkey";
char b[4] = "LOVE";
char b2[5] = "LIFE";
 printf(" strlen(arr) \n strlen(a1) \n", strlen(arr), strlen(a1));
printf(" strlen(b) \n strlen(b2) \n", strlen(arr), strlen(a1));
 return 0;
}


Output:
1
2
3
4
5
6
In function 'main':
Line 7: error: expected ',' or ';' before 'char'
Line 10: warning: incompatible implicit declaration of built-in function 'strlen'
Line 10: error: 'a1' undeclared (first use in this function)
Line 10: error: (Each undeclared identifier is reported only once
Line 10: error: for each function it appears in.)


Create a new paste based on this one


Comments: