EmbLogic's Blog

error: called object ‘a’ is not a function?????

#include<stdio.h>
int main()
{
int a,i;
printf(“enter a number”);
scanf(“%d”,&a);
for(i=a;i<=a(a+10);i++);
{
printf(“%d “, i);
}
printf(“\n”);
}

2 Responses to error: called object ‘a’ is not a function?????

  1. sheetal sharma says:

    this happens because of i<=a(a+10)
    in this statement you try to pass argument to a but a is not a function.

  2. sheetal is correct….

    you are trying to pass a+10 argument to ‘a’ which is not function but a variable

Leave a Reply to sheetal sharma Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>