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

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 352

  • @Rashmi07
    @Rashmi07 11 місяців тому +26

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

  • @raminenisravani3938
    @raminenisravani3938 4 роки тому +295

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

  • @leaderrr_shivam
    @leaderrr_shivam 4 місяці тому +6

    2 saal mauj kiye, ab 3rd year mein aake c padh rahe hain, but mam ne concepts badhiya clear kar diye abhi tak... Lots of love ❤❤❤

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

    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 3 роки тому +2

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

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

      @@karthikmallyam851 In stack segment of memory

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

      thank you very much

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

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

  • @RamanKumar-nw8ru
    @RamanKumar-nw8ru 3 роки тому +104

    Lecture starts from 2:27

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

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому +1

      Do you have the notes of all these lecture??

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

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому +1

      @@yashmishra9603 do you have the notes of all these lecture??

    • @yashmishra9603
      @yashmishra9603 5 місяців тому

      @@bluearmy6281 nope

    • @bluearmy6281
      @bluearmy6281 5 місяців тому +1

      @@yashmishra9603 so how will you remember all that things in your mind !

  • @nitishofficial5147
    @nitishofficial5147 5 місяців тому +11

    if you are following lecture try to run following code in online compiler or in vs code
    #include
    int main()
    {
    printf("%d",'a');
    printf("
    ");
    printf("%c",97);
    return 0;
    }

    • @cortexop7347
      @cortexop7347 5 місяців тому +1

      ASCII value h na.....
      %d for numeric
      %c for charcater
      output : 97
      a

  • @shadan_alam.
    @shadan_alam. 3 місяці тому +5

    00:00 The video discusses constants in the C programming language.
    02:18 Constants in C programming can have fixed values that are not changed throughout the program.
    04:53 Integers can be expressed in three forms: decimal, octal, and hexadecimal.
    07:47 Numeric constants can be represented as integer constants or real constants.
    10:29 Character constants can store single characters enclosed in single quotes.
    13:06 Explanation of format specifiers and character constants in C
    15:44 Constants in the program can be declared using the 'const' keyword
    18:03 Constants can be declared using the 'const' keyword
    thanks is advance 😜😜

  • @vvi714
    @vvi714 4 роки тому +90

    No fear when Jenny mam is here 😁💜

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

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

  • @gowthamgandu1322
    @gowthamgandu1322 2 роки тому +11

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture?? 😊

  • @aartisharma8412
    @aartisharma8412 4 роки тому +57

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

  • @artwithakshita
    @artwithakshita 4 роки тому +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............

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

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

  • @Deepikareddy13
    @Deepikareddy13 7 місяців тому +111

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

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

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

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

    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.

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

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

  • @malraj09
    @malraj09 2 місяці тому

    Maybe me the only student who worked and resigned and get back to education again to clear errors and mam your efforts really impressive and i cleared my DAA with your classes to hope i may clear C now tq for your knowledge mam 😊

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

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

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

    When I was checked in compiler. It is correct.

  • @manirulmolla6105
    @manirulmolla6105 2 роки тому +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!!!

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

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

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

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

  • @Thekida-n9t
    @Thekida-n9t Рік тому

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture??

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

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

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

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

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

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture

  • @easydrafting
    @easydrafting Рік тому +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.

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture??

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

    This video was very helpful. Thank you mam!

  • @aditya_khade_9417
    @aditya_khade_9417 Рік тому +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

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

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

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

    U lecture and u just mesemerizes❤❤

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

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

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  4 роки тому +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

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

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

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

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

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

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

  • @AdithyaJonnakuti_07
    @AdithyaJonnakuti_07 Рік тому +5

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

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

    Mam your are right output is coming

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

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

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

    😍 Jenny my love 😍 new crush introduced

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

    I never commented in UA-cam till now
    This is my first comment
    I love you 💙💙

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 Рік тому

    Watched and Understood ❤

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

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture?

  • @HariCharan-e3f
    @HariCharan-e3f 4 місяці тому

    Good teaching mam

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

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

  • @JN-K8
    @JN-K8 2 роки тому

    Thamks from your Hard Works

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

    I love you💕💕

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

    Your amazing in this thing

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

    Thnx mam for ds brilliant explanation 😊

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture?

  • @lilychristopher459
    @lilychristopher459 3 місяці тому

    Mam ,I have a doubt.At 4:20 Why isn't 05 a valid constant, doesn't it come under the octal category? So why don't we consider it valid?

  • @LakshmiprasannaVanka-q9x
    @LakshmiprasannaVanka-q9x Рік тому

    so beautiful so eligent just looking like a wow😀😇🥰😋

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

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

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

    Nice lecture maam and you also

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

    your teaching are very useful mam

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture?

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

    Good 👍👍

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

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

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture

  • @Natures_glimpses
    @Natures_glimpses 3 роки тому +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...

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

    Thank you Ma'am

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

    Nicely explained🤓

  • @boniamin4756
    @boniamin4756 2 роки тому +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.

    • @calandr4
      @calandr4 3 місяці тому

      @@boniamin4756 yes it's length is four but she mentions the memory stored is 5 because of null terminator.

  • @olufemiomonikeolusegun8337
    @olufemiomonikeolusegun8337 2 роки тому +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 роки тому +2

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

  • @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 Рік тому

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

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

    Nice explanation and simple

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

    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

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

    Happy teachers day mam

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

    Great

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

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

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

    thank u mam for giving the best

  • @SANA-ANSARI-09
    @SANA-ANSARI-09 Рік тому

    Thank u soo much ma'am your vedios is awesome
    But ager exam se pehle milajti to or achha hota 😢

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

    Thankyou mam😊

  • @uttejtg38
    @uttejtg38 4 роки тому +4

    2:26 lec starts

  • @akshatabirajdar4148
    @akshatabirajdar4148 4 роки тому +4

    Are mam ,suniye am here for only see u🤣😂 without any reason 🤦cozz big fan yar😎❤️

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

    yes mam you are right it is kept constant

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

    Thanks a lot lot mam for teaching us

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

    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

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

    I love u mam❤️😘

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

    Thank you maàm😊

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

    I learn dsa from your playlist

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

    i love you, you are amazing

  • @anilnarkhede3718
    @anilnarkhede3718 4 роки тому +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 роки тому +1

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

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

    very helpfull mam

  • @somashekart1800
    @somashekart1800 3 місяці тому

    What happens when you do arithmetic operations on characters.
    Where all you can define a no.
    Is a defined number constant?

  • @syedalifathimaa9618
    @syedalifathimaa9618 4 роки тому +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.

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

    Thanku so much mam

  • @abbaraboinavinay3067
    @abbaraboinavinay3067 11 місяців тому +6

    Hii ma'am I have one doubt ma'am

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

    Nice class mam

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

    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.

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

    Just love it!

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

    Eye is so beautiful 👊👊

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

    thank you

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

    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.

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

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

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

    Thanks Mam for such an amazing explanation.

    • @bluearmy6281
      @bluearmy6281 5 місяців тому

      Do you have the notes of all these lecture?

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

    Mam you really awesome but lightening is very high...pls adjust light

  • @beknowledgeable5558
    @beknowledgeable5558 3 роки тому +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

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

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

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

    Please use a darker ink Marker..
    Board not visible clearly 🙏

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

    Thanks