Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
I may be couple years late but a better method to call these functions would be to specify the typename like so sum (5, 6); and if using float then sum(5.5f, 6.6f); like this...
@@nikhilflautist That is the basic syntax of defining a template for a function. U can understand it as like for every objects classes are the templates and for every functions and classes templates are the templates. Hence for class templates and function Templates we use the keyword class for defining a template.
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
I may be couple years late but a better method to call these functions would be to specify the typename like so sum (5, 6); and if using float then sum(5.5f, 6.6f); like this...
sir , u are the best teacher..I was zero in coding..Now I can say that I am decent enough now..Thanks a lot sir..all coz of u
sir in main()
while printing float sum=
cout
One correction - use sum instead of float in ostream fn.
👍
sir float type sum function printing time you have to use float instead of sum
There is a mistake in main function i.e. in second function call you have written float but that is sum(1.1, 2.2)
Its a basic mistake ....can happen to any1 ..
vivek malkapuram
Fuck off
@@qR7pK9sJ2t see ur name @sanskari boy ans think about ur comment
Thank you sir. Your lectures are really great and easy to comprehen. I wish I had a teacher like you in my college.
This playlist is best for c++
what if one argument is float and another is integer..??
thank u soo much ....its very easy to understand in your session.
Nreash It technology channel will always be the best to learn programming, Thank you sir
Thank you sir! I don't need to read even text book sir🙌
Wow what a fabulous lecture sirgi and I have a doubt can we implement char type here or not ?!!??
Kishore sir ur doing the best job
Favorite sir😍
if we are having different data type addition like (2.2, 2)then can we use only or we have to used?? and wht return type ll be?
is used if arguments are of different datatypes but if both arguments are of same datatype then is used.
In main function for integer u wrote sum(5,9). but for float why did u write float(1.1,2.2) instead of sum(1.1,2.2)?
Hey .
In this video.
He is using template on a function.
But why written class there?.
@@nikhilflautist That is the basic syntax of defining a template for a function. U can understand it as like for every objects classes are the templates and for every functions and classes templates are the templates. Hence for class templates and function Templates we use the keyword class for defining a template.
Thank's , sir for explain this about c++ template. ✌️
kishore sir , classes are superb, I like him very much.... !
thanks for tutorial, it really helps in last minute. thank you sir!
#include
template
t add(t a,t b){
return a+b;
}
int main()
{
int a,b;
std::cout
amazing teaching sir....
no animation no smart boards but still best in class lectures 🤩🤩
Awesome explanation sir...thank u so much sir...
nice sir respect from NEPAL
I've exam in 13minutes😂😘
wow great sir ...nice explanation !!!!
Nice explanation
hi sir, nice explanation but as per code how we will execute the code for char DT
Excellent sir,thank you
nice video sir...... can u explain what if arguments are of int & float and return type is also different
extreamly good sir
Sir,Which book you are using?
program not working when write sum(3,5.4) but works when sum(int,int) or sum(float,float)
not work for(int,float) and (float,int)
why is it so?
for this see next video
#include
using namespace std;
template
t2 sum(t1 a,t2 b)
{
return a+b;
}
int main()
{
float c=sum(5,3.5);
cout
Nice video sir ji
Sir it gives error as...t cannot start a parameter declaration..
Pls explain about place holder
Sir class templates and inheritance gurinchi cheppara plzzzz
Thank you sir
Your make more videos
Good sir
Super sir
Sir can u plss write in big letters it is not visible for me
Chashma lagwa le bhai
#include
using namespace std;
template
c add(c x,c y)
{
return(x+y);
}
int main()
{
cout
Very Easy
super
thanks a lot sir
sir apkpo yaha pe pdhane se kya milta hain ? Kitna kama lete ho sal ka placements se jyada milta hain to hum bhi padhana shuru kar lete hain
Thanks lot
thanx sir
Tq sirr
thankyou
thank u sir
Please explain in hindi
super
Nice sir