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
#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
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
@@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, ✨✨✨✨✨✨✨✨
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
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
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.
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!
%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.
@@dominicamaria2897 search on RUclips how to download visual Studio code and C extension But it's for pc if you don't have pc like me you can also code on mobile there are many compileers available for mobile offline and online
@@dominicamaria2897 and one more thing I am learning c also Try to do much practicals bcs now u think u understanding it clearly but after some time you will forget but after practical you wont If u know hindi then learn from code with harry he explains very well and with instant practical Have a good day :D
I had written this program #include int main(){ int a= 10, b = 7; printf("a+b = %d ", a+b); printf("a-b = %d ", a-b); printf("a*b = %d ", a*b); printf("a/b = %d ", a/b); printf("a%b = %d ", a%b); return 0; } and I had got an error warning: invalid conversion specifier 'b' [-Wformat-invalid-specifier] printf("a%b = %d ", a%b). I want to print "a%b = value of operation of a%b. but it is not showing the result what can i do
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
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
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
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..
😊
#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
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
With %d the output of int and float is zero and with %f the output is 17.00000
3.000000
70.00000
1.428571
Very easily and beautifully explained 👌👌💛
Wow....
Aapne bhut acche se smjhaya hai thank you soo much 🔥🔥🔥
If one is int and one is float it is a negative value as output
Tq so much mam for your vedios ❤
You are the best teacher to whom I learn c language programing
Well explaination..
From
Tamilnadu
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✨
*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.
Mam aap bhau accha padhati hai , Thank u mam☺️
Thank yo ma'am. for all your efforts!!
If I was your computer....I would compile anything u write😁
Simp spotted 😂
@@gamesuid3233😂😊🎉wlu
😊😂😊😊u
The ultimate simp
Areyyy
Nice one👏
Using float after get output a+b=17.000000
a-b=3.000000
a*b=70.000000
a/b=1.428571
✨✨✨✨✨✨✨
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 👏👏👏
ji your content is good I am using your youtube lectures as my revision, please add lectures for java, python and machine learning
Thanks a lot mam🥰🥰🤗 God bless you....
Well Teaching Mam ! Please Continue The C Programming Series
Please explain the full course of c program..your teaching is absolutely great👍👍👍👍👍
with %f format the output is with 6 precision
Identifier rule states we cannot take special symbol with variable like
A+=1
Mam congratulations for achieve 3lac subscriber👍👍💐
plz mam could u make a series for other languages also...like for c++ and java.
thank you mam for this explain🙂
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 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
Output for one float and one integer addition/subtraction/division/multiplication will be a garbage value
No....float value will be the output
printf("a+b=%d",a+b); 17.00
-=-3.0
*=70.0
/=0.70
Mam you are great👍👍👍👍👍👍
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;
}
I'm a big fan of that smile at 15:31
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
Good work. Thank you so much.
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
a+=b*10 or a+=(b*10) .it not a problem if u gave parathesis or not.
Mam which compiler is best for c?
Kya mein python latest version 3.9.1 apne windows 7 laptop par install kar sakta hu if yes then explain step by step
Thank you Mam
Love you so much mam ❤️❤️❤️☺️🥰🥰🥰💕❣️
really such a great style of teaching maam but maam kuch hindi mein be bola kare please !!👍
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
Mam.. Expected identifiers or '('before 'int'
How to solve this issue
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
Do a video on how to use visual stdio code
Mam, why should we use getch and clrscr
Hi madam , what is Lvalue required
If you are master in maths you can crack any programming languages easyly
Aap gajab padhati hai mam
after putting %f .it shows correct answer and after decimal point shows 6 number
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.
Nice video of c language
Thank you so much.. Mam..
wow wonderful lecture
a+b=17.000000a-b=3.000000a*b=70.000000a|b=70.000000
So sweet very naic
thanku you maam
Mam u teach only DS?
Beauty with brain
Mam when to use%d and%f
Great ❤️❤️
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
Is there any notes of this topic from you mam?
hello mam could you please explain volatile keyword with example (c programming)
Mam please provide pdf ...book
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.
14:20
Madam
Please tell me where should I practice these sessions of c language...
Please reply....🙏🙏🙏
Visual studio codr
@@LIGHT-fz8yu Thank you.
Where should I download this?
@@dominicamaria2897 search on RUclips how to download visual Studio code and C extension
But it's for pc if you don't have pc like me you can also code on mobile there are many compileers available for mobile offline and online
@@dominicamaria2897 and one more thing I am learning c also
Try to do much practicals bcs now u think u understanding it clearly but after some time you will forget but after practical you wont
If u know hindi then learn from code with harry he explains very well and with instant practical
Have a good day :D
@@LIGHT-fz8yu thank you so much
MAAM PLEASE MAKE A PLAYLIST FOR PYTHON
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
Those have not laptop facing problem mam , so what can we do mam ...any other way or app in phn 🥺
6:50 PEMDAS🐭
Mam , how can work together mysql with c language or firebase ??
zetcode.com/db/mysqlc/ I think it can give some idea
Mam... itha na solliye aagaanu.... neenga avlo azhagu mam
madam why your are using getch()......?
I had written this program
#include
int main(){
int a= 10, b = 7;
printf("a+b = %d
", a+b);
printf("a-b = %d
", a-b);
printf("a*b = %d
", a*b);
printf("a/b = %d
", a/b);
printf("a%b = %d
", a%b);
return 0; }
and I had got an error warning: invalid conversion specifier 'b' [-Wformat-invalid-specifier]
printf("a%b = %d
", a%b). I want to print "a%b = value of operation of a%b. but it is not showing the result what can i do
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
Mam next plz start c++ course mam
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
Why we use getch()
Hello
Input function
to hold the screen output
I am first comment madam
Is format specifier compulsory for all the printf output statments?
yes
Isme int a=b=c=d=10 karne par error bta rha hai....means declaration ke samay
how to write this a = b -a; in short form or a = 10-a; in short form
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
I am interested to lesson your class
Start java programming mam❤️
Please provide PDF 🙏🙏🙏🙏
mam please start java classes
Madam..... could you please provide me pdf of this course?
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 😁😉
Hello mam please upload notes of c language
Mam please provide notes also
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
Thanks for wearing Jacket..
Now I am perfectly concentrating only board
Mam please conti. DAA lectures