Why
Vložit
- čas přidán 10. 09. 2024
- Visit log2base2.com/... to watch more visual videos like this.
In this animated tutorial, we will learn about the need of #include, int main, return 0 statement.
You may also like us on
Facebook: / log2base2
Instagram: / log2base2
Twitter: / log2base2
Thank ma'm, actually I'm finding why we return 0 in main function,now i understand..🤗
Very clear and simple. Great video
Thanks a lot. Happy Learning!
thanks, I found my answer here of using 'int' with main() instead of void after many reading c++ many years.
Thanks a lot, you make very easy.
Mam, if the program returns integer value then we use int main..but my question is how can I know that the program will returns integer value..(in hello world there is no integer).
0 means true,1 means false here,not like only integer value👍
Technically the OS invokes the _start wrapper function, which subsequently calls the main function.
Great initia enjoyed much
Programming is not tuff as people told it sud complesory from 6th standard our country can have great programmer little champs 😍😍
Yes. And I think learning English properly should also be one of the top priorities.
Log2base2 I have a question
If there is some error then the program won't compile at first place. If program is syntactically and logically correct then program will run anyway. What's the point of writing return 0 then ?
yeah bro this also my question have you understand now please tell me..........
Brilliant work as always!!
Thanks a lot, Abhishek!
Most Welcome
sorry but i dont understand int main and void main it always says that int main is returning an integer value but i can also return something else and it says void main i returning nothing but it is i dont understand pls help
this helped a lot
It was a good tutorial... It really helped me
Thanks mam. In this video very helpful for me.
Very informative video mam thank you very much
Thanks, this was really helpful.
Ma'am please make more videos on C ADVANCE PROGRAMMING
Hi Sandeep. You can watch the advanced C videos on our website. Visit log2base2.com/.
@@Log2Base2 Your fess is bit high please reduce it to 1k.
How void main works please tell me mam/sir
Nice Explanation!
The music in the intro is from nepali music's intro... And i dont know if they will claim their copyright??
Superb mam...Thank you so much
Make full theory on c
Yours english is good 👍👍👍
Very nice explanation and crisp animations, keep up the good work.
if prog could return non zero to os upon any error if it encounters, then why can't it send zero automatically without explicit mentioning
Thank you!!!
Thanks ma'am !!
Mam why can't we use any other integer in the return 0; statement ....I meant to say that can we use return 12; return 5; or any other integer in the place of return 0 cause 12, 5, etc. are also an integer ......Hope you can reply soon I need desperate help.
0 is the standard value returned to the computer to signify that the program has executed successfully.
You can.I wrote return -456 and the program executed successfully..
Thank you ma'am
If i buy a course can i use it lifetime for free?
If we use " return 1 " statement in main function and there we also have some errors while it was executing or running then it will a non-zero value. What will happen in the meantime?
If the program be okey then it will execute to " return 1"
Why 1 is for problem
and 0 is for okey ?
but after compile without return 0 ans is given so why use return 0
same question. If the program worked, it'll automatically return 0. Why should we manually give a statement to return 0? I wish they explained that...
Excellent
Too good
Thank u
Please make videos on c++ data structures. Thank you
What is the intention of we using conio. H
Hello Mam....
I have one question....
int main(int argc,char *argv[ ])
What is the Role of Argument count & Argument vector??
Hi Abhishek,
Like we pass an argument to any function. We can also pass arguments to the main function while running the program.
Like below,
./a.out hello world
These are taken as strings(space separated).
In this case, the main function int main(int argc,char *argv[ ]) will receive 3 string arguments.
So the value argc will be 3.
And argv[0] will have "./a.out"
argv[1] will have "hello"
agrv[2] will have "world"
These are known as command-line arguments in C.
Hope you understand the role argc & argv.
Thank you!
Thankyou so much Mam for such a Crystal clear explaination...
@@abhishekm1903 You are Welcome. Happy Learning!
@@Log2Base2 The "stdio.h" header file contains the function's official prototype also called as "function declaration" and not "function definition" as you said. The function definition is typically present in the "stdio.lib" folder.
@@nirajraut9408 Yes. That's why we have said stdio.h has the necessary information to include i/o related functions. Function definition won't present in the header file. If the statement presents anywhere in the video, kindly point out the video duration where it presents.
I still didn't get why return 0 should be used someone explain
Super
Then what about getch()
Upload remains video's for C programs
How return 0 is optional.... sometimes it is not written then also the compiling works how 🤔 🧐
If you dont explicit return statement in mại function . it will return default value 0
here android development course?
and another thing why doesn't void have a return function
void itself means empty. It doesn't have a return type. So no values are returned.
int main didnt understood
Speaker is a Mallu!
Without return 0
Programing does work.
Yes
This video is shit it doesn't explain any thing it's like just reading book and goes on
and how to learn in programing c..
Some tips for me.
@@_Nickel_MdSayfulIslam we will upload video on c so please go to our channel
Thank you
_e_
First time i heard about indian woman taking classes.
Almost all colleges and schools in india have more female teachers in programming.
@@kO_EC Interesting