So, if you don’t have any idea about C or programming and why it is use, did is useful etc. question in your mind
Then single answer is Yes, it is very important if you want to develop any computer Application like games, software even in hacking.
then first you need
è Cppdroid (for Android) link
è Gcc
compiler according to your Operating System( OS )
Advantages:-
1. Portable language means your created program can share with others
2. Close
to machine so it give you to direct hardware access
3. Variety
of data type with powerful operators
Disadvantages:-
1. Not have OOP’s concepts (that why c ++ developed)
2. C
doesn’t have namespace concepts
3. It
Application is only portable on same type OS ( NOTE:- Application not programs )
it is only some point there are many more
NOTE very important :- if not do any programming then forget all things and set your mind that “ learning of programming important if you want to do some things in computer and you must read this post completely ”
My First Program :-
Open
dev c++ and press Ctl+N
Past
this code in window
#include<stdio.h>
int main()
{
printf("My First program by TrueProgrammerS");
return 0;
}
#include<stdio.h>
int main()
{
printf("My First program by TrueProgrammerS");
return 0;
}
And
save it as c source file
Now click F9 if all things are okey then you get no
error like this report window
if any error are their check the code and try
again

After done click F10 for run your program then you
get output window in black color it know as console window and its is console
application now
Like this
So how it works
So 1st
line
#include<stdio.h> :- this line add stdio.h file in your program
from C library for printf
int mian() :- it is a
position where your program start running and this { } show it’s body
printf(): it use to
display any thing on that console window and what ever you write in this “
Any
thing“ it show on window
return 0 :- it show
that your main is end
last one ; :- this ‘;’ this use to show end of line it means
your line is end
Note= in C small letter and capital letter are different ( that why C is case sensitive language)
so try and comment if you get any
problem
thanks for reading
next post I will show to take input
and do some math’s with C.
GOOD NIGHT
No comments:
Post a Comment