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

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 196

  • @rithish4352
    @rithish4352 3 года назад +106

    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

  • @_s.r.b._
    @_s.r.b._ 2 года назад +14

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

  • @sulurulokesh7877
    @sulurulokesh7877 7 месяцев назад +4

    #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

  • @harshleenkaur6794
    @harshleenkaur6794 3 года назад +14

    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 года назад +6

    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 года назад +37

    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 3 года назад +2

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

    • @vibhusharma2881
      @vibhusharma2881 3 года назад +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 Год назад

      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

  • @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

  • @CSEconceptswithParinita
    @CSEconceptswithParinita 3 года назад +7

    Very easily and beautifully explained 👌👌💛

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 года назад +1

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

  • @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 ❤

  • @bashshar
    @bashshar 3 года назад

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

  • @sathyasathyam6930
    @sathyasathyam6930 3 года назад +4

    Well explaination..
    From
    Tamilnadu

  • @saiishwarya812
    @saiishwarya812 Год назад +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✨

  • @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 2 года назад +1

      these are discussed in previous vidoe.....

    • @debojitacharjee
      @debojitacharjee 2 года назад

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

  • @adidada6456
    @adidada6456 3 года назад +1

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

  • @harshleenkaur6794
    @harshleenkaur6794 3 года назад +3

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

  • @VivekKumar-vf3ig
    @VivekKumar-vf3ig 3 года назад +114

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

  • @GangothriPathhiri
    @GangothriPathhiri Год назад

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

  • @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 9 месяцев назад

    wow such a excellent explanation 👏👏👏

  • @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

  • @_adyasha5056
    @_adyasha5056 2 года назад

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

  • @sivakarthikeyans3894
    @sivakarthikeyans3894 3 года назад +5

    Well Teaching Mam ! Please Continue The C Programming Series

  • @pyntngenlangchyne8380
    @pyntngenlangchyne8380 3 года назад +2

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

  • @food8814
    @food8814 3 года назад +1

    with %f format the output is with 6 precision

  • @chitwanverma4536
    @chitwanverma4536 11 месяцев назад

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

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

  • @tulsibhatta5566
    @tulsibhatta5566 10 месяцев назад

    thank you mam for this explain🙂

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

  • @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

  • @handekarilingojivarasaikri782
    @handekarilingojivarasaikri782 3 года назад +3

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

  • @nisarali0277
    @nisarali0277 3 года назад

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

  • @35.ayeshakhan73
    @35.ayeshakhan73 3 года назад

    Mam you are great👍👍👍👍👍👍

  • @hiriharanvm5568
    @hiriharanvm5568 6 месяцев назад +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;
    }

  • @gmramkumar9536
    @gmramkumar9536 3 года назад

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

  • @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

  • @izharkhankhattak
    @izharkhankhattak 3 года назад +1

    Good work. Thank you so much.

  • @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

  • @AlgorithmCodings
    @AlgorithmCodings 2 года назад

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

  • @priyankapaul7077
    @priyankapaul7077 2 года назад +1

    Mam which compiler is best for c?

  • @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

  • @tps8470
    @tps8470 2 года назад +1

    Thank you Mam

  • @AmitKumar-tv8ng
    @AmitKumar-tv8ng 3 года назад

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

  • @AnkitKumar-hy4ly
    @AnkitKumar-hy4ly 2 года назад

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

  • @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 5 месяцев назад

      because conio file is not there in online c compiler

  • @jayaramkumar5148
    @jayaramkumar5148 Год назад

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

  • @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

  • @krishnachaitanyabalaraju1066
    @krishnachaitanyabalaraju1066 2 года назад

    Do a video on how to use visual stdio code

  • @yeshueditz..7341
    @yeshueditz..7341 Год назад

    Mam, why should we use getch and clrscr

  • @cforeveryone9754
    @cforeveryone9754 22 дня назад +1

    Hi madam , what is Lvalue required

  • @subrahmanyak.v9261
    @subrahmanyak.v9261 6 месяцев назад

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

  • @rajamanmohan777
    @rajamanmohan777 2 года назад

    Aap gajab padhati hai mam

  • @AlgorithmCodings
    @AlgorithmCodings 2 года назад

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

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

  • @epicmotivationtime8497
    @epicmotivationtime8497 3 года назад

    Nice video of c language

  • @tapasnayak3708
    @tapasnayak3708 3 года назад

    Thank you so much.. Mam..

  • @dipteshsahoo744
    @dipteshsahoo744 2 года назад

    wow wonderful lecture

  • @sauravewankhad1884
    @sauravewankhad1884 3 месяца назад

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

  • @kumarkrishna338
    @kumarkrishna338 Год назад +1

    So sweet very naic

  • @abdulnasarachakzai2604
    @abdulnasarachakzai2604 3 года назад

    thanku you maam

  • @snehalshelar7778
    @snehalshelar7778 3 года назад +2

    Mam u teach only DS?

  • @anilroy3943
    @anilroy3943 10 месяцев назад +1

    Beauty with brain

  • @mandulanaveen61
    @mandulanaveen61 2 года назад

    Mam when to use%d and%f

  • @tithighosh2169
    @tithighosh2169 3 года назад

    Great ❤️❤️

  • @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 2 месяца назад

      Give clrscr() and run bro

  • @naveenkumarpragtiengcolleg6512
    @naveenkumarpragtiengcolleg6512 2 года назад +1

    Is there any notes of this topic from you mam?

  • @vilasmagdum1275
    @vilasmagdum1275 3 года назад

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

  • @anilgoudyarlagadda7248
    @anilgoudyarlagadda7248 2 года назад +2

    Mam please provide pdf ...book

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

  • @dominicamaria2897
    @dominicamaria2897 3 года назад

    14:20
    Madam
    Please tell me where should I practice these sessions of c language...
    Please reply....🙏🙏🙏

    • @LIGHT-fz8yu
      @LIGHT-fz8yu 3 года назад

      Visual studio codr

    • @dominicamaria2897
      @dominicamaria2897 3 года назад

      @@LIGHT-fz8yu Thank you.
      Where should I download this?

    • @LIGHT-fz8yu
      @LIGHT-fz8yu 3 года назад

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

    • @LIGHT-fz8yu
      @LIGHT-fz8yu 3 года назад

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

    • @dominicamaria2897
      @dominicamaria2897 3 года назад

      @@LIGHT-fz8yu thank you so much

  • @rharsha1383
    @rharsha1383 2 года назад

    MAAM PLEASE MAKE A PLAYLIST FOR PYTHON

  • @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

  • @sagarpradhan1178
    @sagarpradhan1178 Год назад

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

  • @palanisamyj2315
    @palanisamyj2315 Год назад +1

    6:50 PEMDAS🐭

  • @this.g1
    @this.g1 3 года назад +1

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

  • @gmramkumar9536
    @gmramkumar9536 3 года назад

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

  • @Iplpredictions9814
    @Iplpredictions9814 15 дней назад

    madam why your are using getch()......?

  • @kushalyadav2624
    @kushalyadav2624 Год назад +2

    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

  • @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

  • @uttej1390
    @uttej1390 3 года назад

    Mam next plz start c++ course mam

  • @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

  • @basinaharitha4229
    @basinaharitha4229 3 года назад

    Why we use getch()

  • @eeeeclips9424
    @eeeeclips9424 3 года назад

    I am first comment madam

  • @ritheshn.m7200
    @ritheshn.m7200 2 года назад

    Is format specifier compulsory for all the printf output statments?

  • @sumitsharma1204
    @sumitsharma1204 2 года назад

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

  • @omprakashbhakar912
    @omprakashbhakar912 2 года назад

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

  • @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

  • @eeeeclips9424
    @eeeeclips9424 3 года назад +1

    I am interested to lesson your class

  • @iqrarkhuroo3485
    @iqrarkhuroo3485 2 года назад

    Start java programming mam❤️

  • @gopalchaudhary6170
    @gopalchaudhary6170 2 года назад

    Please provide PDF 🙏🙏🙏🙏

  • @tangudusaisanthosh132
    @tangudusaisanthosh132 Год назад

    mam please start java classes

  • @uduthasatheesh7967
    @uduthasatheesh7967 Год назад

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

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

  • @santruptabehera5267
    @santruptabehera5267 2 года назад

    Hello mam please upload notes of c language

  • @rajniyadav1814
    @rajniyadav1814 3 года назад +7

    Mam please provide notes also

  • @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

  • @kirantechnophile7852
    @kirantechnophile7852 3 года назад +2

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

  • @buntydhakar3232
    @buntydhakar3232 3 года назад

    Mam please conti. DAA lectures