|
-
June 11th, 2012, 11:27 PM
#1
pls Help...
include <stdio.h>
void abc(struct sss );
void main()
{
struct sss
{
int i;
char j;
};
struct sss s = {1, 'a'};
abc(s);// error in this line...
}
abc(struct sss s)
{
printf("%d %c", s.i, s.j);
}
compiler Error:- 'abc' : cannot convert parameter 1 from 'struct main::sss' to 'struct sss'
What's the error about, why this error has occured...??? struct main:: sss means ???
TANUSHREE-AGRAWAL...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|