C_14 Operators in C - Part 2 | Arithmetic & Assignment Operators | C Programming Tutorials

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 193

  • @rithish4352
    @rithish4352 3 ปีที่แล้ว +105

    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

    • @tejashwini5343
      @tejashwini5343 2 ปีที่แล้ว +3

      Yes bro......that's really good idea

    • @kolasiddeganesh851
      @kolasiddeganesh851 2 ปีที่แล้ว +2

      Yes that would be 👍🏻 awesome

    • @RiteshKumar-pu3gp
      @RiteshKumar-pu3gp 2 ปีที่แล้ว +3

      Then y can see code with Harry he does practical also

  • @_s.r.b._
    @_s.r.b._ 2 ปีที่แล้ว +13

    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..
    😊

  • @harshleenkaur6794
    @harshleenkaur6794 3 ปีที่แล้ว +13

    You are the best teacher i have ever read C language from!!!

  • @shrur3527
    @shrur3527 2 ปีที่แล้ว +14

    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

  • @specificgyan-adarshmishra7857
    @specificgyan-adarshmishra7857 3 ปีที่แล้ว +5

    Now c program also has taken part of my 11 class since you start uploading c programming video
    #passion
    #c_program
    #Jenny_Lectures 🙏

  • @venup5381
    @venup5381 3 ปีที่แล้ว +36

    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

    • @aryan....2986
      @aryan....2986 2 ปีที่แล้ว +2

      What Did u use "%d" or "%f". ??

    • @vibhusharma2881
      @vibhusharma2881 2 ปีที่แล้ว +5

      @@aryan....2986 obviously you have to use "%f"

    • @028-bsabana5
      @028-bsabana5 2 ปีที่แล้ว

      1.000000 here also we take 6bytes then how did u get 428571

    • @bharathivlogs1306
      @bharathivlogs1306 2 ปีที่แล้ว +1

      @@028-bsabana5 yes in int we can't use fraction but float we can

    • @saiishwarya812
      @saiishwarya812 11 หลายเดือนก่อน

      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

  • @bashshar
    @bashshar 3 ปีที่แล้ว

    You are the best teacher to whom I learn c language programing

  • @anusha_pathivada
    @anusha_pathivada ปีที่แล้ว +1

    If one is int and one is float it is a negative value as output
    Tq so much mam for your vedios ❤

  • @sulurulokesh7877
    @sulurulokesh7877 7 หลายเดือนก่อน +2

    #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

  • @CSEconceptswithParinita
    @CSEconceptswithParinita 3 ปีที่แล้ว +7

    Very easily and beautifully explained 👌👌💛

  • @sathyasathyam6930
    @sathyasathyam6930 3 ปีที่แล้ว +4

    Well explaination..
    From
    Tamilnadu

  • @VivekKumar-vf3ig
    @VivekKumar-vf3ig 3 ปีที่แล้ว +110

    If I was your computer....I would compile anything u write😁

  • @Ashtab_
    @Ashtab_ 2 ปีที่แล้ว +14

    With %d the output of int and float is zero and with %f the output is 17.00000
    3.000000
    70.00000
    1.428571

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 ปีที่แล้ว +1

    Wow....
    Aapne bhut acche se smjhaya hai thank you soo much 🔥🔥🔥

  • @jjancylisha3537
    @jjancylisha3537 2 ปีที่แล้ว +5

    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

  • @kvpavankumar7724
    @kvpavankumar7724 3 ปีที่แล้ว +8

    ji your content is good I am using your youtube lectures as my revision, please add lectures for java, python and machine learning

  • @debojitacharjee
    @debojitacharjee 3 ปีที่แล้ว +7

    *THERE ARE MAINLY 3 TYPES OPERATORS ONLY* - Unary, Binary and Ternary operators. The operators discussed here comes under Binary category.

    • @ececse
      @ececse ปีที่แล้ว +1

      these are discussed in previous vidoe.....

    • @debojitacharjee
      @debojitacharjee ปีที่แล้ว

      @@ececse I know that but the examples are given in this video is only for binary operation.

  • @sivakarthikeyans3894
    @sivakarthikeyans3894 3 ปีที่แล้ว +5

    Well Teaching Mam ! Please Continue The C Programming Series

  • @sagargowda3231
    @sagargowda3231 3 ปีที่แล้ว +3

    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...

  • @adidada6456
    @adidada6456 3 ปีที่แล้ว +1

    Mam aap bhau accha padhati hai , Thank u mam☺️

  • @GangothriPathhiri
    @GangothriPathhiri ปีที่แล้ว

    Using float after get output a+b=17.000000
    a-b=3.000000
    a*b=70.000000
    a/b=1.428571

  • @harshleenkaur6794
    @harshleenkaur6794 3 ปีที่แล้ว +3

    Thank yo ma'am. for all your efforts!!

  • @saiishwarya812
    @saiishwarya812 11 หลายเดือนก่อน +3

    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

    • @rehana_7117
      @rehana_7117 3 หลายเดือนก่อน +1

      @@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 :)

    • @saiishwarya812
      @saiishwarya812 3 หลายเดือนก่อน

      @@rehana_7117 thank you✨

  • @pyntngenlangchyne8380
    @pyntngenlangchyne8380 3 ปีที่แล้ว +2

    Please explain the full course of c program..your teaching is absolutely great👍👍👍👍👍

  • @le301-rakeshkumar9
    @le301-rakeshkumar9 3 ปีที่แล้ว +2

    ✨✨✨✨✨✨✨
    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,
    ✨✨✨✨✨✨✨✨

  • @gopalhamilpur3784
    @gopalhamilpur3784 8 หลายเดือนก่อน

    wow such a excellent explanation 👏👏👏

  • @tps8470
    @tps8470 2 ปีที่แล้ว +1

    Thank you Mam

  • @im__rahul
    @im__rahul 3 ปีที่แล้ว +1

    Mam congratulations for achieve 3lac subscriber👍👍💐

  • @CSBMUDAVATHSHILPA
    @CSBMUDAVATHSHILPA 2 ปีที่แล้ว +2

    plz mam could u make a series for other languages also...like for c++ and java.

  • @chitwanverma4536
    @chitwanverma4536 11 หลายเดือนก่อน

    Identifier rule states we cannot take special symbol with variable like
    A+=1

  • @nisarali0277
    @nisarali0277 3 ปีที่แล้ว

    printf("a+b=%d",a+b); 17.00
    -=-3.0
    *=70.0
    /=0.70

  • @tulsibhatta5566
    @tulsibhatta5566 9 หลายเดือนก่อน

    thank you mam for this explain🙂

  • @rajamanmohan777
    @rajamanmohan777 2 ปีที่แล้ว

    Aap gajab padhati hai mam

  • @_adyasha5056
    @_adyasha5056 ปีที่แล้ว

    Thanks a lot mam🥰🥰🤗 God bless you....

  • @food8814
    @food8814 3 ปีที่แล้ว +1

    with %f format the output is with 6 precision

  • @AnkitKumar-hy4ly
    @AnkitKumar-hy4ly 2 ปีที่แล้ว

    really such a great style of teaching maam but maam kuch hindi mein be bola kare please !!👍

  • @anilroy3943
    @anilroy3943 9 หลายเดือนก่อน +1

    Beauty with brain

  • @hiriharanvm5568
    @hiriharanvm5568 5 หลายเดือนก่อน +2

    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;
    }

  • @subrahmanyak.v9261
    @subrahmanyak.v9261 5 หลายเดือนก่อน

    If you are master in maths you can crack any programming languages easyly

  • @GOWRIN-tn6ux
    @GOWRIN-tn6ux 6 หลายเดือนก่อน +1

    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..

    • @bhargav_speaks10
      @bhargav_speaks10 4 หลายเดือนก่อน

      because conio file is not there in online c compiler

  • @epicmotivationtime8497
    @epicmotivationtime8497 3 ปีที่แล้ว

    Nice video of c language

  • @kumarkrishna338
    @kumarkrishna338 ปีที่แล้ว +1

    So sweet very naic

  • @krishnachaitanyabalaraju1066
    @krishnachaitanyabalaraju1066 2 ปีที่แล้ว

    Do a video on how to use visual stdio code

  • @blaze102
    @blaze102 ปีที่แล้ว

    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

  • @izharkhankhattak
    @izharkhankhattak 3 ปีที่แล้ว +1

    Good work. Thank you so much.

  • @35.ayeshakhan73
    @35.ayeshakhan73 3 ปีที่แล้ว

    Mam you are great👍👍👍👍👍👍

  • @gmramkumar9536
    @gmramkumar9536 3 ปีที่แล้ว

    I'm a big fan of that smile at 15:31

  • @AlgorithmCodings
    @AlgorithmCodings 2 ปีที่แล้ว

    a+=b*10 or a+=(b*10) .it not a problem if u gave parathesis or not.

  • @dipteshsahoo744
    @dipteshsahoo744 2 ปีที่แล้ว

    wow wonderful lecture

  • @sauravewankhad1884
    @sauravewankhad1884 2 หลายเดือนก่อน

    a+b=17.000000a-b=3.000000a*b=70.000000a|b=70.000000

  • @priyankapaul7077
    @priyankapaul7077 2 ปีที่แล้ว +1

    Mam which compiler is best for c?

  • @handekarilingojivarasaikri782
    @handekarilingojivarasaikri782 3 ปีที่แล้ว +3

    Output for one float and one integer addition/subtraction/division/multiplication will be a garbage value

    • @satyavasavi5361
      @satyavasavi5361 2 ปีที่แล้ว

      No....float value will be the output

  • @shaileshrajthakur1589
    @shaileshrajthakur1589 3 ปีที่แล้ว +3

    Kya mein python latest version 3.9.1 apne windows 7 laptop par install kar sakta hu if yes then explain step by step

  • @AlgorithmCodings
    @AlgorithmCodings 2 ปีที่แล้ว

    after putting %f .it shows correct answer and after decimal point shows 6 number

  • @tapasnayak3708
    @tapasnayak3708 3 ปีที่แล้ว

    Thank you so much.. Mam..

  • @food8814
    @food8814 3 ปีที่แล้ว +3

    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

  • @abdulnasarachakzai2604
    @abdulnasarachakzai2604 3 ปีที่แล้ว

    thanku you maam

  • @yeshueditz..7341
    @yeshueditz..7341 ปีที่แล้ว

    Mam, why should we use getch and clrscr

  • @AmitKumar-tv8ng
    @AmitKumar-tv8ng 3 ปีที่แล้ว

    Love you so much mam ❤️❤️❤️☺️🥰🥰🥰💕❣️

  • @jayaramkumar5148
    @jayaramkumar5148 ปีที่แล้ว

    Mam.. Expected identifiers or '('before 'int'

  • @gmramkumar9536
    @gmramkumar9536 3 ปีที่แล้ว

    Mam... itha na solliye aagaanu.... neenga avlo azhagu mam

  • @NehaReddy-g4d
    @NehaReddy-g4d ปีที่แล้ว

    A doubt :-
    a=a+1
    If a is 4 then,
    4=4+1
    4=5
    How is this possible: 4=5
    Logic

  • @ronycb7168
    @ronycb7168 11 หลายเดือนก่อน

    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!

    • @CKgaming2000
      @CKgaming2000 หลายเดือนก่อน

      Give clrscr() and run bro

  • @snehalshelar7778
    @snehalshelar7778 3 ปีที่แล้ว +2

    Mam u teach only DS?

  • @tithighosh2169
    @tithighosh2169 3 ปีที่แล้ว

    Great ❤️❤️

  • @rharsha1383
    @rharsha1383 2 ปีที่แล้ว

    MAAM PLEASE MAKE A PLAYLIST FOR PYTHON

  • @uttej1390
    @uttej1390 3 ปีที่แล้ว

    Mam next plz start c++ course mam

  • @mandulanaveen61
    @mandulanaveen61 2 ปีที่แล้ว

    Mam when to use%d and%f

  • @kirantechnophile7852
    @kirantechnophile7852 3 ปีที่แล้ว +2

    Thanks for wearing Jacket..
    Now I am perfectly concentrating only board

  • @anilgoudyarlagadda7248
    @anilgoudyarlagadda7248 2 ปีที่แล้ว +2

    Mam please provide pdf ...book

  • @eeeeclips9424
    @eeeeclips9424 3 ปีที่แล้ว

    I am first comment madam

  • @akashkadali5256
    @akashkadali5256 3 ปีที่แล้ว

    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

    • @satyavasavi5361
      @satyavasavi5361 2 ปีที่แล้ว

      We can run 8bit,16 bit,32bit and 64 bit operations on 64 bit processor

  • @vilasmagdum1275
    @vilasmagdum1275 3 ปีที่แล้ว

    hello mam could you please explain volatile keyword with example (c programming)

  • @srinivasnaraparaju3802
    @srinivasnaraparaju3802 2 ปีที่แล้ว

    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

    • @bharathivlogs1306
      @bharathivlogs1306 2 ปีที่แล้ว

      Bro what do they teach in 1st year please tell me bro

  • @rajniyadav1814
    @rajniyadav1814 3 ปีที่แล้ว +7

    Mam please provide notes also

  • @naveenkumarpragtiengcolleg6512
    @naveenkumarpragtiengcolleg6512 2 ปีที่แล้ว +1

    Is there any notes of this topic from you mam?

  • @eeeeclips9424
    @eeeeclips9424 3 ปีที่แล้ว +1

    I am interested to lesson your class

  • @Monstagegaming
    @Monstagegaming 3 ปีที่แล้ว +8

    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 😁😉

  • @dineshjl4821
    @dineshjl4821 3 ปีที่แล้ว +1

    Why do we use "%d" in the program ?

    • @justsensei1738
      @justsensei1738 3 ปีที่แล้ว +1

      %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.

  • @nidhimishra8598
    @nidhimishra8598 2 ปีที่แล้ว

    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

  • @sagarpradhan1178
    @sagarpradhan1178 ปีที่แล้ว

    Those have not laptop facing problem mam , so what can we do mam ...any other way or app in phn 🥺

  • @k.annpurnamma3357
    @k.annpurnamma3357 3 ปีที่แล้ว +1

    Mam please tell me how this
    for this a=( a=+1) I got output 1
    For this a=(a+=1) I got output 128

  • @this.g1
    @this.g1 3 ปีที่แล้ว +1

    Mam , how can work together mysql with c language or firebase ??

    • @syedalifathimaa9618
      @syedalifathimaa9618 3 ปีที่แล้ว

      zetcode.com/db/mysqlc/ I think it can give some idea

  • @tangudusaisanthosh132
    @tangudusaisanthosh132 ปีที่แล้ว

    mam please start java classes

  • @iqrarkhuroo3485
    @iqrarkhuroo3485 2 ปีที่แล้ว

    Start java programming mam❤️

  • @omprakashbhakar912
    @omprakashbhakar912 2 ปีที่แล้ว

    how to write this a = b -a; in short form or a = 10-a; in short form

  • @chinnammanikantareddy821
    @chinnammanikantareddy821 3 ปีที่แล้ว

    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

  • @syedalifathimaa9618
    @syedalifathimaa9618 3 ปีที่แล้ว +6

    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

    • @hetpatel2992
      @hetpatel2992 3 ปีที่แล้ว +12

      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.

  • @sumitsharma1204
    @sumitsharma1204 2 ปีที่แล้ว

    Isme int a=b=c=d=10 karne par error bta rha hai....means declaration ke samay

  • @specificgyan-adarshmishra7857
    @specificgyan-adarshmishra7857 3 ปีที่แล้ว +1

    👌✍👨‍🎓

  • @basinaharitha4229
    @basinaharitha4229 3 ปีที่แล้ว

    Why we use getch()

  • @palanisamyj2315
    @palanisamyj2315 ปีที่แล้ว +1

    6:50 PEMDAS🐭

  • @sagarrawat5389
    @sagarrawat5389 ปีที่แล้ว

    mam i have a crush on you your facial expression aww........😍😍😍😍😍😍😍😍

  • @ritheshn.m7200
    @ritheshn.m7200 2 ปีที่แล้ว

    Is format specifier compulsory for all the printf output statments?

  • @buntydhakar3232
    @buntydhakar3232 3 ปีที่แล้ว

    Mam please conti. DAA lectures

  • @santruptabehera5267
    @santruptabehera5267 2 ปีที่แล้ว

    Hello mam please upload notes of c language

  • @shashank_kishore_
    @shashank_kishore_ หลายเดือนก่อน

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @jitendratiwari4292
    @jitendratiwari4292 3 ปีที่แล้ว

    Good, you are so intelligent. what do you eat?

  • @uduthasatheesh7967
    @uduthasatheesh7967 ปีที่แล้ว

    Madam..... could you please provide me pdf of this course?

  • @bsunil9897
    @bsunil9897 2 ปีที่แล้ว

    I love you jenny ❤😘