Do we need the basics of C++ to do C in Unix?

Status
Not open for further replies.

spikefeet

Newbie level 6
Joined
Mar 5, 2006
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,375
hi do we need the basics of c++ to do C in unix .iam very weak in c programming somebody let me know about
C in unix is their any good book to start of with.
 


    spikefeet

    Points: 2
    Helpful Answer Positive Rating
Re: c++ c in unix

Hi,

u dont need to know c++ to do c progs in linux...,
You can just type in your c code only changes could be in including some libraries and inbuilt functions which may differ depending on compiler.

Example...

Open vi editor..,

Press i to start typing.

then type

#include<stdio.h>
main()
{
printf("hello World\n\n");
}

now save the code as abc.c

then to compile use cc or gcc abc.c

to see output type ./a.out

Regards
}
 

    spikefeet

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…