[ create a new paste ] login | about

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

C, pasted on Sep 3:
1
2
3
4
5
6
7
#include<stdio.h>

void main()
{
string srt[]="hello how r you";
printf("%s",str);
}


Output:
1
2
3
4
5
6
7
In function 'main':
Line 5: error: 'string' undeclared (first use in this function)
Line 5: error: (Each undeclared identifier is reported only once
Line 5: error: for each function it appears in.)
Line 5: error: expected ';' before 'srt'
Line 6: error: 'str' undeclared (first use in this function)
Line 4: warning: return type of 'main' is not 'int'


Create a new paste based on this one


Comments: