Please lookup K & R A8.5 Declarators. Pointr are declared before int.
Could that be the reason of the problem?

Vijay

Logu wrote:
> 
> Hi listers,
> I have a problem, if the below given code is executed it works properly. But
> if the "int i;" is given in the first line of the main function, the pgm
> compiles properly but if i excute it then core is dumped saying that
> segmentation fault, the pgm exited with signal 11.
>
> Someone plz explain me this.
> 
> #include<stdio.h>
> #include<string.h>
> int main(void){
>   char *pass="logu";
>   char *s;
>   int i;
>



_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to