Dude you are not ordinary lol !!pure genius ❤ . I am doing IT engineering(sem 3) but your every videos helps me a lot .thank you for sharing your precious knowledge
i always thought that we need to declare a function before using it. i didn't know the problem was about the conflict between the types. thank you NESO Academy you are the best ever.
We can first call a function and then define it ..it works for all type of data types except character Ex : If the function return type is of char and after calling the function we return a value and store it in char type variable then it won't work.. I
sir please try to make lecture on computer organisation and architecture pls it helps a lot of your students the way you teach us fabulous....pls try to give the attention on my comment.
parameter definition --> a quantity whose value is selected for the particular circumstances and in relation to which other variable quantities may be expressed.
I am not only impressed by the way you teach but with your excellent communication skills as well and the way your words comes out.....I wish I would have that kind of comms skills
Here in 1:13 minutes, you said function prototype always ends with ; but our program will show error if we use a ; after declaring a function prototype.
Hello i got a question here, please. At the level of 2:37, there is a function call which is "char c=fun();" and you said that function call does not take a data type i think so......i am somehow lost at that level.......................
5:47 I tried when the function returns an integer (ex sum) and is defined below main() and... It worked...? It got me thinking why do we need the prototype if the compiler will always look for the definition? (Assuming fun() returns integer so the call and definition aren't contradictory)
@Poranki Raj kumar The compiler start reading your code from the #include and it includes all the library files you have mentioned and it's a downward process and the main execution of a program start from the main() function know the difference. When the compiler finds the function declaration or definition before starting execution of the main() function the Compiler will know that there's a function which will be used in main() function. If you declared or defined a function but you haven't used it (i mean in main function you didn't called or invoked a function) then it will give a warning that u defined a function but not use it
Why would the compiler assume that the function's type is an integer? Its clearly been equated to a variable whose datatype is character, if i equate something to a variable whose datatype is character, why would I think that the thing i equated my variable to (the RHS) is an integer? I would think it is a character because the variable can only store strings. Why would the compiler think the data type of the function is an integer when its being equated to a variable with data type character?
Sir I have a doubt..If the compiler assumes a data type for the function implicitly. Is there any chance that may be sometime the type assumed by the compiler and the type defined by us can be same? Please clarify it.
#include #include int main() { int c,a=12,b=13; c =fun(a,b); printf("char is :%d",c); } int fun(x,y) { return x+y; } // I called a fun before defining it....without prototype !!!it is working ..... how ????
hi im havving this result when im practicing my fonctions , that im geting this messege ""function.c:22:5: note: declared here int test(){"" how can i solve it??
I have a doubt that.... What is the purpose of function ...where we should use it.... Simply we can write a program based on last lecture.. Why we r using function..
If u want to calculate area of rectangle using different values of length and breath ,how will you do? Will u write a program again and again or just call the function you already defined.
during execution of the program we know that first program that comes under process is the main function and we have not declared user defined function after the header files ...so how it is creating diffrence in writing function definition before the main function or after.??the first function that will going to be executed will be main and taht time how compiler will going to have a knowledge about the user defined function???
I can't put just type of variable as a parameter, codeblocks says it must have a name. Why? #include int main() { int number; number=enter_a_number(number); printf("The number is %d",number); return 0; } int enter_a_number() { int number; printf("Enter a number: "); scanf("%d",&number); return number; } I can cut int number and paste it as a parameter, but if I type (int) or (int ) it doesn't work, says error: parameter name omitted
Dude you are not ordinary lol !!pure genius ❤ . I am doing IT engineering(sem 3) but your every videos helps me a lot .thank you for sharing your precious knowledge
So dude in which semester now you are?
@@user-og9nl5mt1b really brother?
@@user-og9nl5mt1b so sad yrr😢💔
@@user-og9nl5mt1b 😭😭😭
@@user-og9nl5mt1b ain’t no way bro
Skipping online classes for 2months ..and preparing for the exam overnight... Ur vdos just helps a lot bruhhh🔥
You are an amazing teacher! Thank you very much ❤️❤️❤️
i always thought that we need to declare a function before using it. i didn't know the problem was about the conflict between the types. thank you NESO Academy you are the best ever.
Awesome explanation sir .... I can't explain how much you have taught to me .... thanks a lot
Thank you so much
Neso academy is the best. Simple and clear explanations .
Thank you so much sir your explanation is much more understandable than any others
We can first call a function and then define it ..it works for all type of data types except character
Ex : If the function return type is of char and after calling the function we return a value and store it in char type variable then it won't work..
I
This lecture needs yours attention to the most
Thank you for explaining the "implicit error"
I found it useful
I feel I wasted my money to go college. Your teaching level better than my college .Thanks a lot .
👍
Hello
sir please try to make lecture on computer organisation and architecture pls it helps a lot of your students the way you teach us fabulous....pls try to give the attention on my comment.
Your explanations are awesome, and examples too.
Awesome teaching Sirji🙏🙏🙏
parameter definition -->
a quantity whose value is selected for the particular circumstances and in relation to which other variable quantities may be expressed.
I regret that I missed your videos 😔 and now I'm watching them after my final papers.
I like the way of teaching
very good ❤️👍
only if i could subscribe this channel twice🙌
Thank you sir well explained now I'm clear with my confusion
Love the way u explain the topics
Sir I really like your videos U r so deligent in explaining
I am not only impressed by the way you teach but with your excellent communication skills as well and the way your words comes out.....I wish I would have that kind of comms skills
girl you're stunning I wish I could marry you
sir its my earnest request to you please start python as soon as psbl . you guys are phenomenonal
can't thank you enough!
theeeseeeeeeeeeee have helped me so much.
simple yet so much sober+understandable.
You all are just awesome💚
Thank you for Crystal clear explanation with relevant examples
Here in 1:13 minutes, you said function prototype always ends with ; but our program will show error if we use a ; after declaring a function prototype.
Lmao
This my first video your total tutorial. Superrr
Hello i got a question here, please. At the level of 2:37, there is a function call which is "char c=fun();" and you said that function call does not take a data type i think so......i am somehow lost at that level.......................
Thanks❤🌹🌹🌹🌹
What if we change the return type of function to int? Compiler's assumption becomes correct
u r making functions so easy for us.
Thank you! I have 2 questions:
1. If instead of just 'a' the function would return a string of a full sentence, should I still use char or void?
Your videos are very helpful.Pleass, make some more video.
Very good session...nd sir Ur voice is so soothing😍😍
5:47 I tried when the function returns an integer (ex sum) and is defined below main() and... It worked...?
It got me thinking why do we need the prototype if the compiler will always look for the definition? (Assuming fun() returns integer so the call and definition aren't contradictory)
1:09 is it true ? check ur example in previous video
You explained it greatly
Sir what is the difference between declaration of function in main and outside the main
Just amazing 😍😍
What if we actually change the return type of function fun as int? Would it generate the same error of "conflicting types of function" or not?
No, the program will run;
@@RahulSingh-uu7fyhow bro.... different data types right?
Can u also make playlist on c++ ? please 🙏🙏🙏
The lectures are awesome can you please provide notes for these lectures
Ur amazing in explation
4:08 as you said every program starts from main() then how can we say that the function is already defined ?? please explain anyone
@Poranki Raj kumar
The compiler start reading your code from the #include and it includes all the library files you have mentioned and it's a downward process and the main execution of a program start from the main() function know the difference. When the compiler finds the function declaration or definition before starting execution of the main() function the Compiler will know that there's a function which will be used in main() function. If you declared or defined a function but you haven't used it (i mean in main function you didn't called or invoked a function) then it will give a warning that u defined a function but not use it
@@rohishzade4107You explained awesome dude
Tq u very much for ur beautiful explanation
Hats off sir💖
Thank you sir
Please I have a question. How do we use modf function in c language?
thanks a lot sir
Sir plz upload the continuation videos after this one
you guys rocked 💝💝💝💝💝💝💝💝
Sir at 5:54 if we give datatype int instead char in line 8
Will the error be still there
no , the output is displayed just with a warning describing that there is no declaration(prototype).....nice doubt mate..!
If compiler thinks the implicit return data type as int, then why still gives same error for a function which has a int return type?
Explanation is very good in electronics than in this video
great concepts....
instead 0f char fun() , if i write int fun(), it will give the output.
Excellent
Thanks you sir this video clear my concept well . In function structure I'm little bit confused in syntax what is first declaration or definition 👍
Thanks.
Nice
Sir what if we create a function with integer return type......?At 6:00
Please answer
The best
Fan from diploma ❤️
Declaring ,calling function are same?as well as defination ,called function are same?
Thank you
thanks sir g
Sr yr. Video are. Easily. Understandable
Plzzz make. More. Video on C
How do I clear the error 'implicit function declaration'?
Why would the compiler assume that the function's type is an integer? Its clearly been equated to a variable whose datatype is character, if i equate something to a variable whose datatype is character, why would I think that the thing i equated my variable to (the RHS) is an integer? I would think it is a character because the variable can only store strings. Why would the compiler think the data type of the function is an integer when its being equated to a variable with data type character?
Plz continue to make videos
Your all video good
Explained meticulously!
thank for teach me
Also make videos on pointers plz
It's possible that compiler assumes 🤔🤔 machines doesn't assume i think
Thank u
Sir u also should python as soon as possible
Sir I have a doubt..If the compiler assumes a data type for the function implicitly. Is there any chance that may be sometime the type assumed by the compiler and the type defined by us can be same? Please clarify it.
Best sir
#include
#include
int main()
{
int c,a=12,b=13;
c =fun(a,b);
printf("char is :%d",c);
}
int fun(x,y)
{
return x+y;
}
// I called a fun before defining it....without prototype !!!it is working .....
how ????
I think because the func u called is int
Make it char and try I think it won't work
sir why do you declare function before main body....?
we need to declare it before main when we define it delow main function
hi im havving this result when im practicing my fonctions , that im geting this messege ""function.c:22:5: note: declared here
int test(){"" how can i solve it??
Why are you using int before main , we are not returning any integer in the main function?😑☹️
Please do a video on linked list
Sir, with out "return 0" how the program is giving output ?
return 0 statment means the code executed with no error it is not necessary
What is char?
If we are using int return type then it is possible to call before declaring??????
yes
sir upload full videos
I have a doubt that.... What is the purpose of function ...where we should use it.... Simply we can write a program based on last lecture.. Why we r using function..
Sir... Plz reply me..
If u want to calculate area of rectangle using different values of length and breath ,how will you do? Will u write a program again and again or just call the function you already defined.
Very gooood🫶
during execution of the program we know that first program that comes under process is the main function and we have not declared user defined function after the header files ...so how it is creating diffrence in writing function definition before the main function or after.??the first function that will going to be executed will be main and taht time how compiler will going to have a knowledge about the user defined function???
The compiler scans from top to bottom. However, the execution starts from main().
Sir plz upload the videos
Please Hindi mein video daliye
hi
please open the translate please #Naso_Academy
Nhi smajh aaya 😭😭
Only I m do thanks million of trucks
Sir plz plz
63 vedio
I can't put just type of variable as a parameter, codeblocks says it must have a name. Why?
#include
int main()
{
int number;
number=enter_a_number(number);
printf("The number is %d",number);
return 0;
}
int enter_a_number()
{
int number;
printf("Enter a number: ");
scanf("%d",&number);
return number;
}
I can cut int number and paste it as a parameter, but if I type (int) or (int ) it doesn't work, says error: parameter name omitted