C_07 Constants in C | Types of Constants | Programming in C

Поділитися
Вставка
  • Опубліковано 18 гру 2020
  • Discussed all the type of Constants in C language
    Enrollment links:
    CS/IT: bit.ly/34eWgCW
    To get 10% discount use Invitation Code: JKL10
    Unacademy is back with yet another exciting Test "GATE Challenge".
    The challenge consists of 4 levels and consists of All the engineering Branches (Mech, Civil, Electrical, ECE, CS/IT, Chemical). The first 3, levels each are a set of 30 questions in 90 minutes to warm you up and get ready for the grand finale which will have 65 questions, to be solved, in 180 minutes. All the questions are designed and curated by the best faculties in Unacademy, just not this All India Ranking of the test would be provided if you give the test live.
    Connect & Contact Me:
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/profile/Jayanti...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    See Complete Playlists:
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    DBMS: • DBMS (Database Managem...

КОМЕНТАРІ • 284

  • @RamanKumar-nw8ru
    @RamanKumar-nw8ru 2 роки тому +84

    Lecture starts from 2:27

  • @raminenisravani3938
    @raminenisravani3938 3 роки тому +246

    Lecture is awesome but the letters on the white board is not clear due to the light effect

  • @indianguy7868
    @indianguy7868 3 роки тому +127

    Adding more to the information presented above:
    When a variable is declared as const, it's stored in read-only section of a memory (.rodata segment). That's the reason when you try to modify the value of that variable, you will get an error: assignment of read only variable. Also, where const is placed also changes the meaning of the declaration. For eg.
    1) const int a -> It means a is a constant integer
    2) int const a -> Same as 1. It means a is a constant integer
    3) const int *a -> Here a is a pointer to a constant integer
    4) int * const a -> Here a is a constant pointer to a non-constant integer. The value of pointed integer is modifiable, but the pointer is not modifiable.
    5) int const * a const -> Here a is a constant pointer to a const integer that means the value of the pointed integer and pointer both are not modifiable.
    const qualifier always applies to what is present to it's immediate left. If nothing is on the left, then it applies to whatever is on the right.
    The whole point of a const qualifier is to make sure you don't accidentally change value of the variable which is supposed to be constant. Though, value of constant integer can be changed through the use of pointers.
    For eg.
    const int a = 10; // Here a is a const integer which will not be modifiable
    int *myPtr = &a; // Pointing to the constant variable
    *myPtr = 20; // Changing the value of constant variable
    Now if you print a, you will see value to be 20. The reason why this happens is because the pointer that is pointing to the const variable is a non-constant pointer. If you want to make sure not even a pointer should be able to change the value of a const variable then you should make the pointer a const too.
    eg. int *const myPtr = &a;
    This way your const stays safe.

    • @mohdbilal7312
      @mohdbilal7312 3 роки тому +6

      Good Info!!

    • @karthikmallyam851
      @karthikmallyam851 2 роки тому +2

      what if u declare a const as a local variable which segment it will be allocated

    • @indianguy7868
      @indianguy7868 2 роки тому +3

      @@karthikmallyam851 In stack segment of memory

    • @anandraghuraman7976
      @anandraghuraman7976 2 роки тому +1

      thank you very much

    • @karthikmallyam851
      @karthikmallyam851 2 роки тому +5

      @@indianguy7868 thank you for your reply this was causing a issue in my project that was reading garbage value , and since its a constant compiler was optimising it , so i mentioned as volatile const now it’s working fine

  • @yashmishra9603
    @yashmishra9603 3 роки тому +74

    NOTE :-
    @10:50 '/0' Is not back slash zero . the correct one is '\0' .

  • @Rashmi07
    @Rashmi07 5 місяців тому +18

    These are still helpful in 2024 mam thank you soo much❤

  • @_AHMATSENOUSSI
    @_AHMATSENOUSSI 2 роки тому +14

    I finally understood a concept that I was looking for since we start C in my college. Thanks a lot . You're the best.

  • @vvi714
    @vvi714 3 роки тому +85

    No fear when Jenny mam is here 😁💜

  • @gowthamgandu1322
    @gowthamgandu1322 Рік тому +9

    No words to explain your efforts and patience.Thank you so much mam.

  • @waterford7736
    @waterford7736 2 роки тому +7

    Thank you so much mam,you are really blessed with knowledge,kudos

  • @artwithakshita
    @artwithakshita 3 роки тому +6

    Ma'am really I have no words to say THANK YOU to you
    your way of explaning is just amazing
    Thank you sooo much............

  • @whysoserious7246
    @whysoserious7246 2 роки тому +2

    One of the best teacher I have come up...Thanks alot

  • @tirthtanna7771
    @tirthtanna7771 2 роки тому +2

    This video was very helpful. Thank you mam!

  • @aartisharma8412
    @aartisharma8412 3 роки тому +56

    Mam I really appreciate your effort for uploading quality content video every day.

  • @computerbyravivaishnav649
    @computerbyravivaishnav649 2 роки тому +3

    Integer is also part of real numbers in maths. U can say only float to non integer parts of a number.

  • @uttej1390
    @uttej1390 3 роки тому +4

    Thank you for your efforts mam🔥🔥🔥🔥🔥🔥

  • @Deepikareddy13
    @Deepikareddy13 Місяць тому +13

    May be iam the one who is watching in 2024 for diploma in cse😅

  • @ayushsharma9027
    @ayushsharma9027 2 роки тому

    We can also use small case character in define section it works.

  • @tithighosh2169
    @tithighosh2169 3 роки тому +6

    Thank you ma'am.❤️❤️ . Ma'am please upload videos of function, pointer of c.

  • @ranamontu4455
    @ranamontu4455 3 роки тому

    Thank you itne ache ache video banane ke li e. Me ne ye constants book me 10 padhe fir bhi Pata nahi chala aur aapka video ek bar dekhte hi samja aa gaya😀😀 . God bless you mam. Have a good life. And keep it up.

  • @simrandeepsingh8728
    @simrandeepsingh8728 3 роки тому +1

    no words for ur appreciation.........just thanku for teaching us .

  • @princeprabu1088
    @princeprabu1088 7 місяців тому

    Thank you mam for explaining the every single topic,it is really helpful to understand.

  • @recluse8130
    @recluse8130 3 роки тому +1

    Thnx mam for ds brilliant explanation 😊

  • @smrutiranjanbal1958
    @smrutiranjanbal1958 2 роки тому

    Mam I love you as well as I heartly love your teaching 🙂. Thanks Mam🙏

  • @Gannibhai23
    @Gannibhai23 9 місяців тому +2

    When I was checked in compiler. It is correct.

  • @bimglobal8405
    @bimglobal8405 9 місяців тому +1

    I love you Jennyyyyyy.... I was taking the videos 10 per day. As a gym for my Alx SE program. Thank you Jenny.
    Jayanthi Khatri Lamba to the world. I'm from Nigeria❤❤❤

  • @sanskarkokne7814
    @sanskarkokne7814 10 місяців тому

    Thank you very much mam for teaching us thoroughly 😊

  • @tapasnayak3708
    @tapasnayak3708 3 роки тому

    Thanks a lot lot mam for teaching us

  • @karimzai3111
    @karimzai3111 Рік тому

    Thamks from your Hard Works

  • @rongalamanindra5477
    @rongalamanindra5477 Рік тому

    your teaching are very useful mam

  • @tirthtanna7771
    @tirthtanna7771 2 роки тому

    yes mam you are right it is kept constant

  • @anandmajhi2054
    @anandmajhi2054 2 роки тому

    I understood your constant in c so keep👍👍 your teaching mam

  • @sistlachaitanya1222
    @sistlachaitanya1222 3 роки тому

    thank u mam for giving the best

  • @user-wo7jp2hx5y
    @user-wo7jp2hx5y 6 місяців тому

    mam you did really amazing worked . How you unfold complex things into simple
    thank you so much mam❤❤❤

  • @anandcherian.585
    @anandcherian.585 2 роки тому +1

    Thank you Ma'am

  • @manirulmolla6105
    @manirulmolla6105 Рік тому +1

    Getting error in the case of constant But getting error as redefinition for the below code in the case of not constant as well.
    #include
    int main()
    {
    int a = 10;
    int a = 20;
    printf("%d", a);
    return 0;
    }
    But Your teaching method and explanation are awesome!!!

  • @sundartutorials8714
    @sundartutorials8714 3 роки тому

    Nice explanation and simple

  • @easydrafting
    @easydrafting 10 місяців тому +2

    Your lectures are amazing, very detailed explanations of each and everything, Glad to watch till now.
    At time stamp 19:28 - You have mentioned about some rules - Can advise where we can get those rules.

  • @salahiansofficial424
    @salahiansofficial424 3 роки тому +1

    Thanks Mam for such an amazing explanation.

  • @mohammedsajeed9398
    @mohammedsajeed9398 Рік тому

    10:52 it is a forward slash single string constant mam.🌼🌷🌹

  • @surashsurash8365
    @surashsurash8365 Рік тому

    U lecture and u just mesemerizes❤❤

  • @afsaruddin1992
    @afsaruddin1992 2 роки тому +1

    Special Characters (32-47 / 58-64 / 91-96 / 123-126)

  • @Nothingmuch134
    @Nothingmuch134 3 роки тому +1

    Thanku so much mam

  • @linggitl9499
    @linggitl9499 2 роки тому

    Just love it!

  • @AmitKumar-tv8ng
    @AmitKumar-tv8ng 3 роки тому

    U r teaching good mam ❤️❤️❤️❤️❤️🔥🔥

  • @boniamin4756
    @boniamin4756 Рік тому +2

    #strlen function does not count \0 or null as the string length.. so if we measure the length of "abcd" strlen() function will return 4 as the string length not 5.

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 10 місяців тому

    Watched and Understood ❤

  • @Nothingmuch134
    @Nothingmuch134 3 роки тому +1

    I learn dsa from your playlist

  • @softvillbornofficial8805
    @softvillbornofficial8805 Рік тому

    Your amazing in this thing

  • @aditya_khade_9417
    @aditya_khade_9417 9 місяців тому +1

    hiii , Nicely explained

  • @anuraganand3108
    @anuraganand3108 3 роки тому +1

    '/0' this one is wrong '\0' this is right but no one is human, only human makes mistakes. good job ma'am, i like your job

  • @gfrunn1187
    @gfrunn1187 6 місяців тому

    Excellent Teaching madam

  • @sridevi9353
    @sridevi9353 3 роки тому

    Thanks mam

  • @akshatgoel6059
    @akshatgoel6059 2 роки тому

    Thanks

  • @olaoluwamichaelfadeyi1735
    @olaoluwamichaelfadeyi1735 Рік тому

    thank you

  • @Sunny-ns6yb
    @Sunny-ns6yb 3 роки тому

    Nicely explained🤓

  • @durgaprasadthandra4066
    @durgaprasadthandra4066 3 роки тому

    Thank you maàm😊

  • @techsupport4.0
    @techsupport4.0 Рік тому

    Nice lecture maam and you also

  • @ashokkumarashokkumar8212
    @ashokkumarashokkumar8212 Рік тому

    Super osm class ma'am thank q ma'am i am bca student

  • @waheedabbas3915
    @waheedabbas3915 3 роки тому

    thanks for sharing awesome explanation but video seems not clear/blur

  • @narayangupta9660
    @narayangupta9660 2 роки тому

    examples are correct even when i entered ASCII values like 1000 , 1500 i got different notations. But it will upto 7 zeroes , afterthat when i enter 8 zero i got nothing.

  • @yasithproductions9386
    @yasithproductions9386 Рік тому

    Madam, this is a very useful video and I could collect more knowledge from this video .
    Do we use the word STRING in C programming ? It should be character array,Am I?Please give me the answer

  • @anandkatam8150
    @anandkatam8150 3 роки тому

    Please make video on python programming it would helpful for students

  • @chebrolu_boys
    @chebrolu_boys 10 місяців тому +1

    Complete the c programming in one class it will help us
    150 parts are very tough

  • @Nothingmuch134
    @Nothingmuch134 3 роки тому +1

    Plz make a video on priority quees

  • @Nishantachar24
    @Nishantachar24 3 роки тому +2

    Mam your are right output is coming

    • @palagirisireesha1607
      @palagirisireesha1607 2 роки тому

      Bro we are not getting output please say bro how can we get that

  • @rushikeshsanap1981
    @rushikeshsanap1981 Рік тому

    Thank you madam

  • @user-jee5pj7yg543h
    @user-jee5pj7yg543h Рік тому

    very helpfull mam

  • @preethi600
    @preethi600 11 місяців тому

    Thankyou mam😊

  • @abbaraboinavinay3067
    @abbaraboinavinay3067 5 місяців тому +3

    Hii ma'am I have one doubt ma'am

  • @Natures_glimpses
    @Natures_glimpses 2 роки тому +3

    As per my understanding the 'X' used here is to denote any number we can use inbetween.
    If I am wrong please correct me...

  • @kalyankumard2243
    @kalyankumard2243 2 роки тому

    is const variables can rely on scope rules? if const keyword is applied to local variables the scope of the variable is local and if the const keyword is applied to a global variable the scope of a variable is global correct. where are global and local const variables stored in memory? if const variables are stored in .rodata but how the const variable can access through the memory of the variable we can access the .rodata?

  • @lfn8026
    @lfn8026 3 роки тому

    Ty's mam

  • @user-oi4wh9fv8w
    @user-oi4wh9fv8w 3 місяці тому +1

    Mam based on your rules how to separate multiple
    intiger values assigned to a variable

  • @trendingvideos8600
    @trendingvideos8600 2 роки тому

    Mam please do python series it will be helpful for more students please mam.

  • @thisisrinivas
    @thisisrinivas Рік тому

    Is all escape sequences are single character constant? can you explain me.

  • @ashishxsoni
    @ashishxsoni 8 місяців тому +1

    Great

  • @AdithyaJonnakuti_07
    @AdithyaJonnakuti_07 9 місяців тому +5

    I think there was few members watched this video... by already knowing this concept clearly😁😁..... Purpose is different😁😁😁😁😁❤

  • @shivasmart967
    @shivasmart967 Рік тому

    tq mam

  • @syedalifathimaa9618
    @syedalifathimaa9618 3 роки тому +2

    I'm really surprised that these quality videos are for free, but then I have a question? Is really no class is taken by you for free.

  • @Ak-ko3tx
    @Ak-ko3tx 2 роки тому +1

    Good 👍👍

  • @olufemiomonikeolusegun8337
    @olufemiomonikeolusegun8337 Рік тому +1

    Thanks for this wonderful tutorial Ma'am.
    Please I have this question to ask about the examples you gave under the HEXADECIMAL CONSTANT.
    You said 0X7G is invalid because the last character i.e, G is out of range of characters used in HEXADECIMAL (A-F) while 0x7F is correct.
    Please what happens to the character "x" which is also not in the range of A-F?
    Please I'll be very glad if you can make available pdf notes on this training. More power to your elbow.
    I'm enjoying your service to humanity.
    Bunch of thanks.

    • @lucifero4601
      @lucifero4601 Рік тому +2

      Bro the rule is that hexa decimals must begin with OX or Ox preceding them the alphabets should be from A-F

  • @anilnarkhede3718
    @anilnarkhede3718 3 роки тому +5

    Mam X means you tell only we can use alphabets from A to F then what is meant by X

    • @pawanthejm5954
      @pawanthejm5954 3 роки тому

      Same doubt..

    • @anuvindm2092
      @anuvindm2092 2 роки тому

      0X or 0x just means the numeric constants are hexadecimal.
      Here X is not a value.

  • @iam_bunny3239
    @iam_bunny3239 3 роки тому

    If you teach all subjects then👌👌👌👌👌👌👌👌👌

  • @lawrencejessica6842
    @lawrencejessica6842 10 місяців тому

    I have question ma'am, under hexadecimal constant you said we can't use G but you used X which not part of the 0-9 and A-F...I need a clarity under that ma'am...Thank You always ma'am.

  • @amyahmed6187
    @amyahmed6187 Рік тому

    i love you, you are amazing

  • @Foodiechannel123-
    @Foodiechannel123- 3 дні тому

    Nice class mam

  • @chandrikah2656
    @chandrikah2656 10 місяців тому

    Happy teachers day mam

  • @everydayphilos4388
    @everydayphilos4388 3 роки тому

    ok done !

  • @navaneethan3830
    @navaneethan3830 2 роки тому +1

    Nice

  • @pyliharika5664
    @pyliharika5664 Рік тому

    What is ox mam ur saying hexa decimal constant?

  • @beknowledgeable5558
    @beknowledgeable5558 2 роки тому +2

    Mam can you please tell me that why are you using X and x in hexadecimal constants....as you told that there are 0-15 characters in hexadecimal constants...and we write these 0-9 and A=10, B=11, C =12, D=13, E= 14, F=15....so where is the use of X and x alphabets?

    • @manickam7231
      @manickam7231 2 роки тому

      Its just a dummy value fr sake of explaination as we do in maths

  • @theblackelephant
    @theblackelephant Рік тому

    Wow!!

  • @sriraghava1576
    @sriraghava1576 2 роки тому

    Mam Cyber security course tell me, once Modules wise tell me, u r teaching explanation excellent 👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌.

  • @mohammadalisina8670
    @mohammadalisina8670 3 роки тому

    U r not only beautiful but nice lecturing u do!

  • @gokavarapumadhavilatha793
    @gokavarapumadhavilatha793 3 роки тому +2

    You said we shouldn't use G in hexaoctal decimal but why we are using X in that mam

  • @mohanguptakoduru1261
    @mohanguptakoduru1261 Рік тому

    Mam then we should not write x also mam if we don't want to write G here at 7.20

  • @bhaveshkbharti
    @bhaveshkbharti 3 роки тому +1

    Jenny Ma'am fall in love with this nonworking MARKER even it is not performing 😆😆😆😆😆

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  3 роки тому +1

      😂

    • @poojithakuruganti9868
      @poojithakuruganti9868 3 роки тому

      @@JennyslecturesCSIT mam kindly request u to use new pen can't visible mam. Plzz mam. Hope this message reaches you mam

  • @nareshpulipati7148
    @nareshpulipati7148 Рік тому +1

    Mam you are explaining good,
    But please can you write little bit bright we can't see some letters..

  • @narendrasuryawanshi1708
    @narendrasuryawanshi1708 2 роки тому +3

    Hello mam! What a fabulous explaination . On which book i get such details??

    • @noone0978
      @noone0978 Рік тому

      It's experience....it will not be in any book

  • @nageshkumar2438
    @nageshkumar2438 3 роки тому +3

    Jaya mam in 7:25 OX74 u said hexadecimal number but in hexadecimal number comes only 0-9 and A to F.how I can not understand...

    • @rajeshkumar-zv1mr
      @rajeshkumar-zv1mr 3 роки тому +1

      Mam i m highly thank full to you for making such highly valuable videos for us which are also free for us

    • @DaringVid
      @DaringVid 11 місяців тому

      0-9 are decimal numbers and (0-9-A-F) are hexadecimal numbers