КОМЕНТАРІ •

  • @ParthKawatra
    @ParthKawatra 4 роки тому +423

    Hello Neso Academy, Could you please enable all English closed captioning for all of your C programming lectures? I would be grateful if you do that. Because I am deaf so I cannot hear your explanations. Thank you

    • @duffyduck4065
      @duffyduck4065 4 роки тому +18

      You can do that on your UA-cam app settings

    • @ParthKawatra
      @ParthKawatra 4 роки тому +41

      @@duffyduck4065 Buddy, some videos in the playlist are not haviing option to enable captions. Nevermind, I already learned from mycodeschool.

    • @the_aggregate7048
      @the_aggregate7048 4 роки тому +11

      @@ParthKawatra all the best parth

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

      @@ParthKawatra bhai plz tell me which is best between ravindra babu rabula sir vs neso academy

    • @adhargupta3441
      @adhargupta3441 3 роки тому +8

      @@jainsahab8549 neso academy as it has wide variety of questions and easy explaination as well❤️🤗

  • @beaubreau
    @beaubreau 4 роки тому +89

    That moment where I actually understand things :) brings tears to my eyes. Thank you. I am trying to prepare more before I graduate and these lessons are helping so much.

  • @SaurabhKumar-qc6og
    @SaurabhKumar-qc6og 3 роки тому +259

    I can't pay you back Neso Academy, but I assure you, once I get a job, I'll surely contribute to this channel. The way you are providing such a nice content for free of cost, it's just amazing!!!

    • @Reptorex
      @Reptorex Рік тому +6

      2 saal k baad bhi unemployed 🗿

    • @SaurabhKumar-qc6og
      @SaurabhKumar-qc6og Рік тому +10

      @@Reptorex college gye hote to pta hota C programming 1st year me padhate hai. Now calculate the basic maths 😂

    • @Reptorex
      @Reptorex Рік тому +3

      2 saal baad ye reply Dene aya payback toh krk ja neso ko 😂😂
      Sorry Bhai meto Gaya nahi clg ese hi Matrix me kaam kr raha hu
      Abhi bhi unemployed h kya bro ?

    • @SaurabhKumar-qc6og
      @SaurabhKumar-qc6og Рік тому

      @@Reptorex referral hai?

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

      @@SaurabhKumar-qc6og off campus 🗿

  • @롸롸-s2d
    @롸롸-s2d 5 років тому +26

    char = -128 ~ 127
    unsigned char = 0 ~ 255
    char a = 255
    a(2) = 1111 1111
    1111 1111 = -1
    answer
    a + 10 = 9

  • @nitinagrawal3184
    @nitinagrawal3184 5 років тому +120

    Finally You tube recommend something worth to watch.Thanks for the wonderful explanation.

  • @connorhorman
    @connorhorman 5 років тому +25

    In C, Q3 is not guaranteed to work if char is signed, as the result of the narrowing value conversion is either implementation-defined (as the signed-type representation is implementation-define). On compilers which define char as unsigned, it is guaranteed to work and print 9. And this all of course assumes that CHAR_BIT is 8. Just to make you aware that the results are by no means guaranteed by the standard. (if CHAR_BIT is say 16, then it prints 265), and if char is signed using sign-and-magnetude, it prints -117 (as 255 converts in that narrowing value conversion to -127, then -127+10=-117).

    • @sasishushma
      @sasishushma 5 років тому

      Yes..u r correct..the question should signed char c or unsigned char c to avoid any complier specific results..

    • @royarijit998
      @royarijit998 5 років тому +1

      255 in binary comes out to be 0b11111111, which comes out to be the same for the binary representation of -1 (0b11111111).. So, for signed representation, 'c' will have a value of -1.. Upon adding 10 to that, it assumes the value 9.. The other case of unsigned representation of the character 'c', has been explained in the video.. However, by default, upon declaration, the 'signed' modifier is chosen for the character..

    • @gogogalian
      @gogogalian 5 років тому

      @@royarijit998 C does not specify a default sign or integer encoding. The binary representation of -1 could be 0b10101010 for all you know. The default sign could be both signed or unsigned. It's even possible that char has 50 bits.

    • @java_shaileshkushwaha878
      @java_shaileshkushwaha878 4 роки тому +9

      In Q3.
      In declaration statement
      Char c=255;
      U can not e specify modifier
      THEN compiler implicit assume by default it is signed
      Range would be
      -128 to 127
      But u assign c=255; na
      This value is already out of range then compiler do cyclic process
      255 is equivalent to - 1
      Then finally c contain - 1
      C=c+10;
      C= - 1 + 10
      C=9;
      Out put is 9
      ( in hole explanation we assume character take 1 byts= 8 bits
      Thank you neso academy

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

      shailesh kushwaha This isn't guaranteed. This assumes a) The compiler defines signed integers as 2s compliment, b) the compiler has bitwise conversion for out-of-range singed integers Both of which are unspecified.
      Also, char on its own is a distinct type from signed char, and it is implementation defined if the type is signed or unsigned. (See en.cppreference.com/w/c/language/arithmetic_types for details).
      Further, this also depends on having 8-bit bytes (CHAR_BIT=8), which is not always true.

  • @Gamechanger..601
    @Gamechanger..601 5 років тому +19

    Sir i am preparing for gate 2020... ur videos whr in recommendation .. u hv no idea how good u are at teaching.... totally worth watching...

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

      Hey wht you doing now

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

      @@anuragsuryawanshi4177 chaprasi at vidya mandir school

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

      @@rajaup4036 So rude tu lgja na chaprasi

  • @impulsiveDecider
    @impulsiveDecider 2 роки тому +8

    I would strongly advise you to include to which standard you are adhering. After C99 using implicit integer will at least throw a compiler warning and depending on parameters will not even compile.

  • @abhijitroy1958
    @abhijitroy1958 4 роки тому +12

    this is from the legendary category course on youtube , explaination
    on peek

  • @ARIFKHAN-wx4kf
    @ARIFKHAN-wx4kf Рік тому +1

    Dear Sir, when you were teaching us signed integer and in that you were telling us how to represent -ve no. (Like -127), you were using place value method i.e. -2^7 and 2^0 to set -127. So my question is to you, can we apply same method to represent -3 rather than using 1's comp. Of 3, then adding 1 and finally gets 2's comp. Of -3??
    Regards

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

    in Q1, no need to write %s in the printf. Can just pass the string directly like printf("Hello\a
    ");

  • @rupeshshete6162
    @rupeshshete6162 4 роки тому +5

    6:50 IMP 265mod256=9 remainder

  • @oviya.n1317
    @oviya.n1317 3 роки тому +2

    The 2s comp representation of a signed num is -3 = 101 only so when treated as a positive num it is 5 .

  • @gyansagar9118
    @gyansagar9118 2 місяці тому +1

    Q3 : char c is signed character , so c= 255 is equivalent to c = -1 and -1 + 10 = 9.

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

    In Q3: The range of signed char is -127 to 128 and for unsigned it is 0 to 255. But in the question it is signed as default. But you said the range is 255 here also? Enlighten me

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

    Sir in question 3 there would be default modifier signed and therefore the range would be -128 to +127 so it can't hold 255 I thought so, after watching your answer I get confused...clear this please.

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

    Please slove this question..
    write a program to compute the value of u for different values of x at distinct instances of time and plots the series of graphs on u vs plot.

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

    If we remove%s it prints only hello world or will it shows error coz of added %d
    (1st Q)

  • @fatihkeskin9900
    @fatihkeskin9900 5 років тому +23

    This is so great. Pronunciation is better than every other Hindis

  • @saniyamansuri9607
    @saniyamansuri9607 3 роки тому +11

    This questions were just too helpful.
    Glad that I find your channel sir 😀

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

    Character is capable of holding the information upto 1byte only which is equal to 8bits (that means the max value it can hold is 255)
    Data types obey the law of arithmetic modulo 2 raised to the power n where n is equal to 8 in this case
    Here ans is 265 mod 2 raised to the power 8

  • @aryanpatial650
    @aryanpatial650 4 роки тому +14

    Sir in question number 3 maximum value of char should be 127 ?. I am confused sir

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

      No!
      Char take 1 byte space having 8 bits ... and so the max range will be 255 ...

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

      Char occupies 1 byte of memory and there is no point of signed and unsigned, since the binary representation will be same for both. Look into video 9

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

    When I made the c fragment as like :
    #include
    Int main()
    {
    Printf("%d",printf("%10s","jee"));
    }
    Xpected output as:
    [. jee3]
    But the Output as shown as like this:
    [ jee10 ]
    Plse anyone let me know how's it possible?
    & If I'm wrong then tell me wh're my concept was wrong ...

  • @pranjitdas1467
    @pranjitdas1467 5 років тому +10

    App agar c programming sikhane lag gaye to case hi nehi hain... Many engineering graduate will be beneficial from thiz... With the help ur videos we passed the exam of digital logic, basic eletronics subject... Who ever you r... U r in the in the heart sir....

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

    in this Q why 256divide by 255
    char c=255;
    c=c+10;
    printf("%d",c);
    return0;
    out put is 9

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

    Hi sir, i have a doubt regarding q no:1 printf("%s","HELLO WORLD"); will print only HELLO right? ie till space is encountered? Answer should be HELLO 5 ??

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

    In question 3 there sholud be unsigned, otherwise it can not hold 255

  • @Dontever_throw_trash_out
    @Dontever_throw_trash_out 6 років тому +49

    nice lectures by you sir
    that too for free!
    appreciated your efforts.

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

    doubt:-
    input=#include
    int main()
    {
    printf("%d", printf("%s
    ","Hello world!"));
    return 2;
    }
    output=
    Hello world!
    13
    Process returned 2 (0x2) execution time : 0.750 s
    Press any key to continue.
    by adding"
    " why are number of characters are increasing??please anyone answer my doubt

  • @ms.poonguzhaliuthirapathy4760
    @ms.poonguzhaliuthirapathy4760 2 роки тому

    I executed [printf("%d","Hello World");] The Output is 4210688 . Why the output is like this ? What is the link between the output and the Input ?

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

    2:49 no one teach us this one...its very helpfull

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

    But sir!!
    Consider the code:
    Printf("%10s","hello") it prints 5spaces and hello.
    Printf("%1s","hello") it prints 4 characters but not 1 mentioned,i didn't understand that.

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

    it's showing me no such file or directory in the commnt box in code blocks can u tell me what's is the error

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

    In the question 5 why you have compared with 2s completed? What is the link between that question and 2s compliment?

  • @sarthvidekar8071
    @sarthvidekar8071 5 років тому +35

    Thank you soo much sir . I'm nothing without NASO academy . 😇
    I cleared my entire engineering b'cos of you only . 😃
    If i got a chance to meet you , it's been an one of the memorable moment in my life . 🤗

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

    i have a doubt!!
    why did you took 1's complement of -3 in this particular example to represent it in binary?

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

    I must say that this is best channel on youtube to learn programming

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

    Suggest from where i can find more questions like these (covering conceptual and hidden meaning of a syntax)

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

    So, in question 1 , is the string printed as well along with the number of characters ?

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

    Sir it means every negative no. Is present in 2scompement form in computer and that 2scomplement is equivalent to some positive value binary no.
    Please sir kindly answer my question and your teaching is gratefull sir

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

    at 6:37, how did you explain n =8, how didi you know 2 raise to the power of 8?

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

    qus no (3) we use clock analogy method we also get an answer 9

  • @saswatpradhan5549
    @saswatpradhan5549 5 років тому +7

    I am so lucky to have found your channel 😊

  • @nandannswamy4250
    @nandannswamy4250 5 років тому +7

    I never saw someone explains like this👏

  • @ghantasalajyothihamsaveni6054
    @ghantasalajyothihamsaveni6054 8 місяців тому

    In question 5
    After converting 3 to two's compliment we had only one zero .
    If we had 2 zeros then how to subtract

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

    sir, with question 3, when i tried working out the mod on my calculator i keep getting 10, does that mean that 10 are the number of characters and 9 is the answer due to starting with 0?

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

    Sir for question no.5, I tried the following code with long int and therefore, the size of long int is 8 bytes. Theoretically, I should get an answer different from the one you got but still I got the same answer as you described. Why isn't long int considering 8 bytes rather just 4 bytes?

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

      I have an doubt in same question... am just changing the second argument expression as i-j and i get 5,why? Instead of getting 4294967291

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

      For ur doubt... May be ur computer holds 4 bytes for long int else long long int holds 8 bytes.

  • @AshishKhetwal
    @AshishKhetwal Місяць тому

    in first que, why the answer is not 12Hello World! ? since we put the %d at the beginning of the printf function shouldn't the ans be 12Hello World! ?

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

    Hi sir, I would like to ask a doubt in qs no. 4.
    Is it okay to declare
    i;
    only instead of
    int i;
    ?
    Will the compiler implicitly assumes the datatype int to the statement?

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

    In Q3 (at 6:47) ,if we exceed the maximum value, we comeback to zero ? why we are getting 9 as output

  • @johnbode5528
    @johnbode5528 3 роки тому +7

    Unfortunately, the answer to Question 3 is a _lot_ more complicated than presented here.
    Depending on the implementation, plain "char" can be either signed _or_ unsigned. The encodings for characters in the _basic character set_ (upper- and lowercase Latin characters, digits, most punctuation) are guaranteed to be non-negative, but encodings for additional characters may be negative or positive. If plain "char" is unsigned, then the value will "wrap" as described. If it's signed, then the behavior is *undefined* . You _may_ get a result of 9. You may get something different.

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

      Signed or unsigned char will give same answer.

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

      actually i get 19

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

      @@duggirambabu7792 It _may_ give the same answer, but it isn't guaranteed. Unsigned overflow is well-defined; signed overflow is not. If you're on a system that uses two's complement to represent signed values and doesn't do anything funky on signed overflow, then yes, you are likely to get the same result. On a system that uses ones' complement or sign-magnitude to represent signed values, or raises some exceptional condition on signed overflow, you'll likely get something completely different.

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

      @@johnbode5528 if the range of signed char is from -128 to 127, aren't we exceeding the range in this case which means we should divide 265 by 127?

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

      I got a garbage value

  • @nam-ji-ah9375
    @nam-ji-ah9375 2 роки тому

    You got a new.. keen curious learner (beginner)of C as subscriber today✌

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

    In question no.4 ,sir you said it will assume int data type if we will not mention any data type after modifier .why it assumes only int not other data types.

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

    Thank you very much. You are a genius 👍👍🔝🔝

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

    5:56 a char is capable of holding value upto 255, but when a char is declared it is signed by default right? Then the range should be from -128 to 127? Ughhhh someone help. This is so confusing!

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

      Here in char,by default it behaves as unsigned.
      Whereas in int,short or long they are signed.

  • @leoneruri6857
    @leoneruri6857 11 місяців тому +1

    let me be frank, I like your videos and i've learnt a lot from you. Many at times i've been excited and some depressed, like in this video, i thought i understood the concepts until you asked the tough question. In short, thank you for sharpening our experience

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

    Is there is a website where i get practice set questions like you are solving..

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

    Thank you! I had a pending program since long time.
    Today i was just watching your video when a concept clicked in my mind because of a small concept which learned from your video. My program is completed,i am thankful.

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

    But in the question there is asked according to definition of integer so Option a is correct .Compiler or Computer will assume as int

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

    Sir if printf also returns the no. Of characters it successfully prints on the screen then why don't we get 12 twice(once from the internal printf and other from external)??

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

      Because they are two separate calls. It’s equivalent to writing
      int tmp = printf( "%s", "Hello, World!" ); // returns 12
      printf( "%d", tmp ); // returns 2

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

    Sir your content is super good no one can beat it...I want to study C# from your channel but it is not available here. Can you please make content for C#.... That's a request to you sir please🙏

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

      Konse year me ho ?

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

      @@yuvraj_11211 2nd semester ke exams over huye hai

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

    So good... finally got something really useful

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

    Hello #NesoAcademy
    In this video questions 2 where when we write %10s then it's priny five space before Hello
    Buy when we write %5s then it's doesn't print any space before Hello.
    Why?
    ÇOĎÈ:
    printf("%5s","Hello");

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

      Hello Naman,
      it is because '%10s' prints upto 10 places and '%5s' prints upto 5 places and word 'hello' consists of 5 letters.so it does give any space before Hello.
      Hope This Helps You.

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

      it does'nt give any spaces.i typed wrong before,sorry

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

    #include
    int main(){
    printf("%d", printf("%d","Hello world"));
    return 0;
    }
    -----------
    Output
    42148527
    what went wrong ? why im getting this weird number ?

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

    have a great sir this topic is very helpful video sir.
    Thanks you so much sir

  • @akankshasoni3479
    @akankshasoni3479 4 роки тому +7

    Really great videos one can refer to these videos for certain competitive exam like gate too. Helped me a lot throughout. Thanks neso academy for such wonderful videos.

  • @jupjyotkhosla4640
    @jupjyotkhosla4640 3 роки тому +7

    Great variety of questions! Loving the content

  • @Vijay-uc5yd
    @Vijay-uc5yd 5 років тому +6

    Thank u so much sir actually i like tge way u were teaching it helped me a lot🙇

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

    so DS/sometimes water controlled and damshello sirwell done your speech and thank you very much

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

    "signed i = value" equivalent to "int i = value", why? because when you write the signed modifier without any data-type after it, your compiler assume that i is either a variable of type int or it's a variable of type char, and that assumption depends on the value stored in i.

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

      Depending on compiler and standard, this will probably either give you a warning or not compile at all (implicit type conversion is non standard since C 99)

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

    sir i have a doubt and that is;
    #include
    int main()
    {
    printf("%d",printf("%s","jab"));
    return 0;
    }
    output:-jab3
    but when I change it as;
    #include
    int main()
    {
    printf("%d",printf("%s
    ","jab"));
    return 0;
    }
    output:-jab
    4
    i did not change number of characters but it is sending output as 4
    please anyone clarify my doubt.

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

      printf function that is inside printing "jab" and cursor goes to next line as you write
      .
      It means jab word has 3 character in it and 1 special charater that is
      .
      So the inside printf returning the value 4 to the outside printf function
      Eg:
      Printf("%d",printf("%s
      ","jab"));
      Output of inside printf is:
      Printf("%d",4);
      I think now you got my point. Why it is printed jab4.
      If it is helpful reachout to my channel.

  • @sadashivsabale139
    @sadashivsabale139 5 років тому +5

    Thank you do much sir it was very helpful for me

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

    thank you so much..i am preparing for ntpel exam..tis is very useful for me..tysm

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

    i didn't undestood Ques 3 as by default data type is signed so the max value should have been 127??

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

      Can i clear your doubt

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

      @@rsingh6216 yes sir please

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

    While it is true that most of the loosey goosey C compilers will accept the integer declaration shown in Q4 it is quite bad form to assume that every compiler will behave the same and much better for code readability and portability to explicitly and fully define your types. There is a big difference between what will compile w/o error and good coding practice.

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

      Yeah, exactly. C dropped implicit type conversion a long time ago and it's just plain better than supporting legacy code like that. Especially in uni you usually have strict compilation parameters which are specific to the standard you are using and -pedantic will definitely not let you compile this.

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

    Sir is this video helpful for mca entrance exam?

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

    Sir in first question we can also use void sir?

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

    A beautiful explanation
    Happy to listen in a simple manner

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

    I heartfully thanks to neso academy. I learned full course in this channel. It helps alot in my career...

  • @atkuriajaykumar3701
    @atkuriajaykumar3701 5 років тому +13

    thank you sir helping for my placement

  • @achiles6928
    @achiles6928 5 років тому +2

    Cant understand rhe Q3 where did you get the 2raise to 5*8?

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

    This is a really important video lecture, thank you very much Neso Academy.

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

    10:55 Q5 answer 2^n - 3.

  • @Yoyo-ck9pm
    @Yoyo-ck9pm 3 роки тому

    Sir which is the compiler you are using sir

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

    In the first question,Have u given space after "!" ,Then the output should be 13 :)

    • @Vitriol-dk3xh
      @Vitriol-dk3xh 4 роки тому

      He hasnt given space after '!' char.

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

    Happy to find your lecture which is very understandable and clear...
    Clear voice👍,,,,,thank you sir

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

    Very nice and very useful thank you sir

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

    These videos are really helpful, I watch them with my friends on Voicely whenever we practice coding. We all agree that we learned more from UA-cam videos than from school lol

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

    printf("%10s","hello"); this will run in turboc too?

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

    woah so nice questions. i appreciate it

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

    in c programming language
    int a=5;
    a=a++;
    what will be value of a?
    why answer is not as expected

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

      5 and not 6
      if ++ would have been used in pre increment then answer would be 6.
      But here first a=5 will be processed and kept in RAM and then increment will take place. (value of a is assigned to 'a' on LHS and then next operation of ++ will take place)
      in contrary to this --> if statement would be like simply a++; then answer would be 6. ( here no assignment is done so 'a' is incremented)
      LIKE if it helps.

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

      @@sarthak761 why bro

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

      @@sarthak761 then what would following code do
      int a=5;
      a++;

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

      The C programming language imposes no requirements for that code, which leads to _undefined behavior_ . There is no "correct" value of the variable a after the expression (a=a++); the expression is undefined.

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

      @@sarthak761 Wrong. The expression (a=a++) doesn't have a defined behavior in the C programming language.

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

    Too good for the c programming language.well done

  • @JaspreetSingh-yy5jf
    @JaspreetSingh-yy5jf 4 роки тому +2

    great channel, provides really helpful information

    • @mein.likhari
      @mein.likhari 4 роки тому +1

      oe, my god, again a co-incidence or what.
      i clicked on the video, and you've also watched it XD
      What are frikking moment

    • @JaspreetSingh-yy5jf
      @JaspreetSingh-yy5jf 4 роки тому

      @@mein.likhari lool

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

    Sir whatbis the difference between signed and unsigned?? Meaning what are u signed and unsigned integers?

  • @nehalizak
    @nehalizak 5 років тому +1

    Hello sir. Its very useful lecture but sorry I am not understand english lecture..
    what will do that I Understood english

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

    Thanking you sir
    I learn something new...

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

    your teaching is awesome

  • @rohitsuryawanshi2711
    @rohitsuryawanshi2711 5 років тому

    What about this code output
    Void main()
    {
    Int a=50000,b;
    b=a*50;
    Printf("%d",b);
    }

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

    Thank you for this complete and well ordganized Course about C. Very good explained with funny indian accent ;). Long story short : AMAZING. Thanks for sharing.