Jenny mam after completing all these lectures even do these practically so that we can remember it life time anyways as usual you are awesome, hope uh read my comment and also plan a practical videos after explaining theory part
dear mam thank you will be very less for your videos , praying for all happiness n success to u n to ur family , i m benefited a lot by your videos , you are an excellent teacher
#include int main() { float a,b; char op; printf("enter the value of a: "); scanf("%f",&a); printf("enter thye value of b: "); scanf("%f",&b); printf("enter the operator that to be performed:"); scanf(" %c",&op); switch(op) { case '+': float c=a+b; printf("The value of the input result is:%f ",c); break; default: printf("please enter the proper operator "); } printf("go home"); return 0; } don't get confuse guys In C, a newline character (' ') is indeed a character, and it is represented by a single character. When you press Enter on the keyboard, it generates a newline character (' '). So, when the program reads characters using scanf("%c", &op);, it treats the newline character just like any other character in the input stream. That's why we need to handle it appropriately to ensure the program behaves as expected. thank you
Mam you are an excellent teacher.... thank you for your video.... I'm really impressed.... with your teaching style....and also I'm benefited a lot by your videos... I'll pray for your success and happiness... mam....god bless you
@@saiishwarya812 even if one variable is of type float, if you use modulo operator then you will get an error. MODULO OPERATOR CAN ONLY BE USED WITH VARIABLES DECLARED AS TYPE int. Hope this helps :)
✨✨✨✨✨✨✨ Mam please one suggesion if that can you change the white board you are using to a black board, so that we won't get that much amount of back light from phone, ✨✨✨✨✨✨✨✨
warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' error: invalid operands to binary % (have 'int' and 'float') but output is same mam
mam the conio.h file isn't running in my compiler the internet says it's an outdated file that's not found in modern compilers anyways found the lecture valuable thank you!
Mam in previous lectures you explained the variables using 16 bit. But most of the pcs run on 64 BIT OR 32 BIT. may I Know the reason why you explained using the 16 bit...I hope you answer my question
Mam i written a programm as #include #include void main( ) { Int a=b=5, c; c=a+b; printf("%d=%d",c); getch( ); } mam but the complier is saying that there is an error that is the b did not assagin the value , but how is that mam i have used the assignment operator know mam please clarify my doubt mam I am currently studying btech 1st year CSE after watching your video only I got more interest in coding thank you mam C
%d is format specifier for integers, format specifier means on the place of that what data will be placed so, you can say it tell to convert "a" into int.
hello mam....ap qn se book se padhate ho....m apke videos dekh kr notes to bna re hu....but jb hm interview dete h....to kbhi kbhi koe koe definitions ke leye words me confuse ho jate h....to plz suggest book
Hey, If you will declare an int c=a+b; and the printf("%d",c); then it will give the integer part of the sum, in this case it will be 17 . Code: #include int main() { int a=10; float b=7; int c=a+b; printf("%d",c); return 0; } Coming to your doubt that output are different every time you write your code the problem is actually same as the following code : #include int main() { float a=29; printf("%d",a); return 0; } In this case a is a float number but I am trying to print integer but in c language float will not be converted into int and hence it will give a garbage value. If I will declare a int b=a; then it will store the integer part of the float as int cannot store the decimal part and then if you will print b then you will get desired output. Code for that is following, you can check it out: #include int main() { float a=29;int b=a; printf("%d",b); return 0; } Same is with your case a+b is a float as b is a float. Hope this helps.
Jenny mam after completing all these lectures even do these practically so that we can remember it life time anyways as usual you are awesome, hope uh read my comment and also plan a practical videos after explaining theory part
Yes bro......that's really good idea
Yes that would be 👍🏻 awesome
Then y can see code with Harry he does practical also
Yes!
When we are using a int value and a float value and gave %d as format specifier we are not getting the right output..
😊
You are the best teacher i have ever read C language from!!!
dear mam thank you will be very less for your videos , praying for all happiness n success to u n to ur family , i m benefited a lot by your videos , you are an excellent teacher
Now c program also has taken part of my 11 class since you start uploading c programming video
#passion
#c_program
#Jenny_Lectures 🙏
when we declare and intialize as
int a=10;
float b=7
then the output is
a+b=17.000000
a-b=3.000000
a*b=70.000000
a/b=1.428571
What Did u use "%d" or "%f". ??
@@aryan....2986 obviously you have to use "%f"
1.000000 here also we take 6bytes then how did u get 428571
@@028-bsabana5 yes in int we can't use fraction but float we can
What happens if a is int data type and b is float data type
And we use modulo(%)
Between them
What will be output in int and float
You are the best teacher to whom I learn c language programing
If one is int and one is float it is a negative value as output
Tq so much mam for your vedios ❤
#include
int main()
{
float a,b;
char op;
printf("enter the value of a:
");
scanf("%f",&a);
printf("enter thye value of b:
");
scanf("%f",&b);
printf("enter the operator that to be performed:");
scanf(" %c",&op);
switch(op)
{
case '+':
float c=a+b;
printf("The value of the input result is:%f
",c);
break;
default:
printf("please enter the proper operator
");
}
printf("go home");
return 0;
}
don't get confuse guys
In C, a newline character ('
') is indeed a character, and it is represented by a single character. When you press Enter on the keyboard, it generates a newline character ('
'). So, when the program reads characters using scanf("%c", &op);, it treats the newline character just like any other character in the input stream. That's why we need to handle it appropriately to ensure the program behaves as expected.
thank you
Very easily and beautifully explained 👌👌💛
Well explaination..
From
Tamilnadu
If I was your computer....I would compile anything u write😁
Simp spotted 😂
@@gamesuid3233😂😊🎉wlu
😊😂😊😊u
The ultimate simp
Areyyy
Nice one👏
With %d the output of int and float is zero and with %f the output is 17.00000
3.000000
70.00000
1.428571
Wow....
Aapne bhut acche se smjhaya hai thank you soo much 🔥🔥🔥
Mam you are an excellent teacher.... thank you for your video.... I'm really impressed.... with your teaching style....and also I'm benefited a lot by your videos... I'll pray for your success and happiness... mam....god bless you
ji your content is good I am using your youtube lectures as my revision, please add lectures for java, python and machine learning
*THERE ARE MAINLY 3 TYPES OPERATORS ONLY* - Unary, Binary and Ternary operators. The operators discussed here comes under Binary category.
these are discussed in previous vidoe.....
@@ececse I know that but the examples are given in this video is only for binary operation.
Well Teaching Mam ! Please Continue The C Programming Series
Mam please make a video of those who have completed there engineering and jobless in cs background this will be helpful for lot of people i guess...
Mam aap bhau accha padhati hai , Thank u mam☺️
Using float after get output a+b=17.000000
a-b=3.000000
a*b=70.000000
a/b=1.428571
Thank yo ma'am. for all your efforts!!
What happens if a is int data type and b is float data type
And we use modulo(%)
Between them
What will be output in int and float
@@saiishwarya812 even if one variable is of type float, if you use modulo operator then you will get an error. MODULO OPERATOR CAN ONLY BE USED WITH VARIABLES DECLARED AS TYPE int. Hope this helps :)
@@rehana_7117 thank you✨
Please explain the full course of c program..your teaching is absolutely great👍👍👍👍👍
✨✨✨✨✨✨✨
Mam please one suggesion if that can you change the white board you are using to a black board, so that we won't get that much amount of back light from phone,
✨✨✨✨✨✨✨✨
wow such a excellent explanation 👏👏👏
Thank you Mam
Mam congratulations for achieve 3lac subscriber👍👍💐
plz mam could u make a series for other languages also...like for c++ and java.
Identifier rule states we cannot take special symbol with variable like
A+=1
printf("a+b=%d",a+b); 17.00
-=-3.0
*=70.0
/=0.70
thank you mam for this explain🙂
Aap gajab padhati hai mam
Thanks a lot mam🥰🥰🤗 God bless you....
with %f format the output is with 6 precision
really such a great style of teaching maam but maam kuch hindi mein be bola kare please !!👍
Beauty with brain
mam the assignment opt code has executed but the result has only spaces... can u explain it?
int main()
{
int a,b,c,d;
d = a=b=c=8;
}
If you are master in maths you can crack any programming languages easyly
Jenny mam. I hope you reply me.. Your videos are amazing.. If i include #include in online c compiler it shows error why it occurs..
because conio file is not there in online c compiler
Nice video of c language
So sweet very naic
Do a video on how to use visual stdio code
When I took one value integer and other value float on writing %d although it compiled and run but output was wrong on writing %f output was right
Good work. Thank you so much.
Mam you are great👍👍👍👍👍👍
I'm a big fan of that smile at 15:31
a+=b*10 or a+=(b*10) .it not a problem if u gave parathesis or not.
wow wonderful lecture
a+b=17.000000a-b=3.000000a*b=70.000000a|b=70.000000
Mam which compiler is best for c?
Output for one float and one integer addition/subtraction/division/multiplication will be a garbage value
No....float value will be the output
Kya mein python latest version 3.9.1 apne windows 7 laptop par install kar sakta hu if yes then explain step by step
after putting %f .it shows correct answer and after decimal point shows 6 number
Thank you so much.. Mam..
warning: format '%d' expects argument of type 'int', but argument 2 has type 'double'
error: invalid operands to binary % (have 'int' and 'float')
but output is same mam
thanku you maam
Mam, why should we use getch and clrscr
Love you so much mam ❤️❤️❤️☺️🥰🥰🥰💕❣️
Mam.. Expected identifiers or '('before 'int'
How to solve this issue
Mam... itha na solliye aagaanu.... neenga avlo azhagu mam
A doubt :-
a=a+1
If a is 4 then,
4=4+1
4=5
How is this possible: 4=5
Logic
it will update to 5
mam the conio.h file isn't running in my compiler the internet says it's an outdated file that's not found in modern compilers anyways found the lecture valuable thank you!
Give clrscr() and run bro
Mam u teach only DS?
Great ❤️❤️
MAAM PLEASE MAKE A PLAYLIST FOR PYTHON
Mam next plz start c++ course mam
Mam when to use%d and%f
Thanks for wearing Jacket..
Now I am perfectly concentrating only board
Mam please provide pdf ...book
I am first comment madam
Mam in previous lectures you explained the variables using 16 bit. But most of the pcs run on 64 BIT OR 32 BIT. may I Know the reason why you explained using the 16 bit...I hope you answer my question
We can run 8bit,16 bit,32bit and 64 bit operations on 64 bit processor
hello mam could you please explain volatile keyword with example (c programming)
Mam i written a programm as
#include
#include
void main( )
{
Int a=b=5, c;
c=a+b;
printf("%d=%d",c);
getch( );
}
mam but the complier is saying that there is an error that is the b did not assagin the value , but how is that mam i have used the assignment operator know mam please clarify my doubt mam
I am currently studying btech 1st year CSE after watching your video only I got more interest in coding thank you mam
C
Bro what do they teach in 1st year please tell me bro
Mam please provide notes also
Is there any notes of this topic from you mam?
I am interested to lesson your class
I fall in love with you when I saw you for the first time❤️❤️❤️....will you marry me....not silly ...I'm really excited about ur answer 😁😉
Why do we use "%d" in the program ?
%d is format specifier for integers, format specifier means on the place of that what data will be placed so, you can say it tell to convert "a" into int.
hello mam....ap qn se book se padhate ho....m apke videos dekh kr notes to bna re hu....but jb hm interview dete h....to kbhi kbhi koe koe definitions ke leye words me confuse ho jate h....to plz suggest book
Those have not laptop facing problem mam , so what can we do mam ...any other way or app in phn 🥺
Mam please tell me how this
for this a=( a=+1) I got output 1
For this a=(a+=1) I got output 128
A=1
a=a+1
Mam , how can work together mysql with c language or firebase ??
zetcode.com/db/mysqlc/ I think it can give some idea
mam please start java classes
Start java programming mam❤️
how to write this a = b -a; in short form or a = 10-a; in short form
mam i want to do programming in my laptop how would i an do an you provide any apps to do programming at my home in my laptop
int a=10;
float b=7;
printf("%d",a+b);
=> Everytime it's giving different outputs like -845509928...........why ma'am
printf("%f",a+b);
=> 17.000000
Hey,
If you will declare an int c=a+b; and the printf("%d",c); then it will give the integer part of the sum, in this case it will be 17 .
Code:
#include
int main()
{
int a=10;
float b=7;
int c=a+b;
printf("%d",c);
return 0;
}
Coming to your doubt that output are different every time you write your code
the problem is actually same as the following code :
#include
int main()
{
float a=29;
printf("%d",a);
return 0;
}
In this case a is a float number but I am trying to print integer but in c language float will not be converted into int and hence it will give a garbage value.
If I will declare a int b=a; then it will store the integer part of the float as int cannot store the decimal part and then if you will print b then you will get desired output.
Code for that is following, you can check it out:
#include
int main()
{
float a=29;int b=a;
printf("%d",b);
return 0;
}
Same is with your case a+b is a float as b is a float.
Hope this helps.
Isme int a=b=c=d=10 karne par error bta rha hai....means declaration ke samay
👌✍👨🎓
Why we use getch()
Hello
Input function
to hold the screen output
6:50 PEMDAS🐭
mam i have a crush on you your facial expression aww........😍😍😍😍😍😍😍😍
Is format specifier compulsory for all the printf output statments?
yes
Mam please conti. DAA lectures
Hello mam please upload notes of c language
❤❤❤❤❤❤❤❤❤❤❤❤❤❤
Good, you are so intelligent. what do you eat?
Madam..... could you please provide me pdf of this course?
I love you jenny ❤😘