August 7th, 2013, 01:31 AM
Please help me find the error
the program was written in LINUX. it is giving a compilation error.
August 7th, 2013, 01:47 AM
argument of puts is string(char *) and you are passing int thats why it give error.
use printf to print a.
August 7th, 2013, 02:00 AM
when i used printf .. its again giving a compilation error saying
Originally Posted by eramit2010
passing argument 1 of ‘printf’ makes pointer from integer without a cast.
August 7th, 2013, 02:04 AM
found the ERROR .. thanks :D
Originally Posted by akha
August 7th, 2013, 02:13 AM
i think u were passing a directly in printf. right?