Why I am not using header files in a C program

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

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

  • @ruchisaklani1
    @ruchisaklani1 7 лет назад +5

    You are just awesome..keep it up..I have never seen this much clearity in teaching.

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

    awsome sir pata nii Kaha se esi informatic information late ho sir aap .... love you sir thank you so much

  • @vikramjeet6893
    @vikramjeet6893 8 лет назад +26

    thank you sir .This question was bothering me for while .

  • @actually4660
    @actually4660 6 лет назад +6

    My God sir ! Ur explanation makes complete sense! I feel so happy that I discovered your channel.
    This video helped a lot!
    #ThankUsir

    • @mysirgdotcom
      @mysirgdotcom  6 лет назад +3

      Thanks for watching and liking it. Visit www.mysirg.com for all FREE videos.
      Keep sharing videos on whatsapp and FB. Also subscribe

    • @actually4660
      @actually4660 6 лет назад

      MySirG.com definitely 😆👍👍

  • @rupeshsappata1432
    @rupeshsappata1432 6 лет назад +1

    yes sir u r right.... hume bhi humare teachers ne nhi samjhaya y sb.....
    u r the real teacher sir...
    thank u so much sir

  • @maheshmishra9540
    @maheshmishra9540 8 лет назад +6

    Sir, mere class me bhi esee hi huaa thaa , meri madamne jhaad diya thaa mere koo,
    aur ek baat
    yee koon hai sala jisne dislike kiyaa.
    love you for sharing this type of knowledge.

    • @rubysing9263
      @rubysing9263 7 лет назад +2

      suppose stdio.h file ka hum bus printf() function use kar rhe he to preposser sare functions ke declarations ko copy paste karega but humne use bus printf()kiya he. Linker kya karega??? kya sare functions ki definitions ko link karega ya bus printf() kidefinition ko. please tell me this

    • @rubysing9263
      @rubysing9263 7 лет назад

      ok thanks

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

    Extreme level of knowledge

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

      No no bro It is a god level😍😍😍😍😍😍😍😍

  • @viveksharma2338
    @viveksharma2338 8 лет назад +8

    Thankuuu So much sir... m big fan of urs..
    aapke Smjhane ka Trikaa Gajab h..

  • @priyasingh-ob8do
    @priyasingh-ob8do 7 лет назад +2

    Sir your videos r really vry helpful...i m a student of m.c.a. 2 year....i m new to this programming world as earlier i was a science side student till now ....n this is completely a new journey for me...u r really vry helpful...thx

  • @vineetsharma2163
    @vineetsharma2163 6 лет назад

    Sir you are great sir ESE study hum Kahi nahi kar sakte h Jo AAP sikhate h ek ek chij choti se chhoti chij AAP Bata ke chalte h thank you so much sir

  • @gaurav4748
    @gaurav4748 7 лет назад

    thanks so much sir for share this video bcoz isse mere kafi sare concepts clear ho gye......aur me un logo se kahna chahunga ki tumhe jb samaj nai aata to padhna chhod do kisi ke super interesting video ko dislike mat kro..

  • @Raj_Patel21
    @Raj_Patel21 8 лет назад +11

    Your explanation is so awesome , I learnt a lot from your videos,
    Can you make a video on making an Dynamic Array in C ?
    thnks

  • @nandunit
    @nandunit 6 лет назад

    Aaj hi maine notice kia tha aapki video par .mai confuse v tha header file pe aur ye video mil gyi finally.☺️☺️☺️👍🙏

  • @gauravgautam1637
    @gauravgautam1637 8 лет назад

    sir kha se late hai sar aap ye sab data bcoz itna conceptually aaj tak kisi ne aaj tak kisi ne ni padaya you are great
    love you tooooooooo much sir

  • @ahmadyarkhan156
    @ahmadyarkhan156 7 лет назад +5

    from Pakistan ,, big fan of u>>>salute 2 u>> splinded,> keep it up>>>

  • @jaidippatra6440
    @jaidippatra6440 8 лет назад +2

    Sir, I am using latest GCC compiler in Linux OS and while building a c program without using any header files it flags some warnings, however it executes flawlessly...
    1.........hello.c:3:2: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    2.........hello.c:3:2: note: include ‘’ or provide a declaration of ‘printf’
    It means that one should use header file...

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

    Can we declared header files inside a main function in c

  • @shreyassen4260
    @shreyassen4260 5 лет назад +2

    Doubts :
    1) What's the difference between original .c file and object file.
    2) Why the compiler needs to convert our original .c file to object file ?

  • @shrutivaishakhiyar6529
    @shrutivaishakhiyar6529 6 лет назад

    Just Awesome sir.... I have learnt a lot from your videos...

  • @cpsharma161
    @cpsharma161 4 года назад

    सर् तुस्सी ग्रेट ।। दंडवत आपको 👏👏

  • @shobhitasaxena3326
    @shobhitasaxena3326 7 лет назад

    If we want to get the coding/definition of predefined functions like getch(), printf() how can we found it?

  • @arshadmubeen8433
    @arshadmubeen8433 7 лет назад

    Great lecture sir... u r really very good I learn alot from your videos 👍

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

    How does linker decides which library files to be linked with the object file ?

  • @sheetalsingh2794
    @sheetalsingh2794 7 лет назад +1

    sir... during an interview ,,, i was asked difference between header file in C and Package in java ???

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

    Sir iske sath ek aur question aya hai mere ko ki function ki body / defination hum main ke bhar kyy karte hai andar kyu nahi kare to kya hoga

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

    15:10 😂😂 and God bless you and your loved ones sir.... May Lord always protect you from evils...

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

    Woh sir so useful your information 🙏🙏🙏👍👍👍

  • @JofIdeas
    @JofIdeas 4 года назад

    Sir jab preprocessor me header file code copy kr leta hai to .lib ko linker se jodne ki kya jarurat....

  • @abhisheksolanki8271
    @abhisheksolanki8271 7 лет назад

    Y we r using "using namespace std;" in code blocks in order to use cin and cout?

  • @pritpalAimers
    @pritpalAimers 4 года назад

    Sir agar hum header file nhi likhegee.....toh linker us library file ko attach kese kregaa ??.. usko kese patq chlegaa ki konsi librray attach krni hai ?

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

    sir eak aur doubt
    main() function kuy likna haie ???
    simply printf ("hello"); kyu lik nahi saktie

  • @keshavramvishvakarma9100
    @keshavramvishvakarma9100 4 года назад

    Sir cntl +f9 se hi to compilation start ho kata h to pre processor kb chalata h

  • @prayagparikh8020
    @prayagparikh8020 7 лет назад

    You are very poweful and knowledgeable teacher

  • @asifraj321
    @asifraj321 6 лет назад +1

    Very well explained you this.i appreciate your effort.

  • @babasahebargade3463
    @babasahebargade3463 7 лет назад

    Sir......printf ki coding kaha save hai ....libc.so ya libc.lib

  • @ASHISHSINGH-yp1kb
    @ASHISHSINGH-yp1kb 3 года назад

    Why it is not necessary to declare predefined function in c language but in cpp it is compulsary?

  • @manpreetsingh4106
    @manpreetsingh4106 6 лет назад +1

    Your teaching is awesome

  • @aanchalsorot146
    @aanchalsorot146 7 лет назад

    sir...if our program is not having headerfiles then what preprocessor gonna convert???
    n as u said compiler includes headrfiles on its own(if we dnt write them) then it means program then again goes to preprocessor to get those headerfiles converted ..??

  • @anujgupta3397
    @anujgupta3397 8 лет назад

    sir hum apni khud ki header files bhi include kr skte haina?
    uska faida kya hay?

  • @mikhileshmhirphode4374
    @mikhileshmhirphode4374 7 лет назад

    Thank you sir.
    But I have a question. While compile and run , many times I am not able to get output for the same program which was showing output earlier.
    When I click on Built and Run option , it don't shows output window but it shows error "No such file or directory"
    What is solution for that ?

  • @Raj_Patel21
    @Raj_Patel21 8 лет назад

    main() ka return type aap kyo nahi likhte ?

  • @tohidurislammondal2897
    @tohidurislammondal2897 4 года назад

    very well explained sir. thank you

  • @bedang1000
    @bedang1000 8 лет назад

    sir how do u get that auto fill when u were typing the header files ?

  • @rubysing9263
    @rubysing9263 7 лет назад

    sir, suppose stdio.h file ka hum bus printf() function use kar rhe he to preposser sare functions ke declarations ko copy paste karega but humne use bus printf()kiya he. Linker kya karega??? kya sare functions ki definitions ko link karega ya bus printf() kidefinition ko.

  • @iam_kundan
    @iam_kundan 8 лет назад

    sir, please tell the names of some good books for c language practise.

  • @amantoor2778
    @amantoor2778 8 лет назад

    why we should use header files if not needed?

  • @vikaspal5105
    @vikaspal5105 7 лет назад

    Thank you sir maine abhi c programming sikhna start kia hai mujhe problem hai ki jab mai Multiply ka program bnaya to choti calculation ho rhi hai lekin bdi ni ho pa rhi hai ans galat aa rha.... Problem kya hai please tell anyone

  • @sairajdas6692
    @sairajdas6692 7 лет назад

    Sir new lines k lie codeblocks pay kia command dale ?

  • @sirikalal648
    @sirikalal648 6 лет назад

    At the time of exam which program we need to use c or cpp. Is it OK if we use c program instead of using c++ program

  • @aneeshberde1792
    @aneeshberde1792 5 лет назад

    How to download turbo or app in which we can run c program

  • @tanveerjatu1105
    @tanveerjatu1105 5 лет назад

    Sir , Android mobil me coding ke liye konta app best hoga jisme ham practice kr ske

  • @deepanshumishra4568
    @deepanshumishra4568 5 лет назад

    Sir can i use header files in between or at last of the program

  • @zepvi9487
    @zepvi9487 8 лет назад +4

    thank you very much sir my dout has been successfully cleared

  • @mritunjaygiri3626
    @mritunjaygiri3626 8 лет назад

    sir ue kon sa compiler h..

  • @shubhamkumaragrawal2379
    @shubhamkumaragrawal2379 6 лет назад

    why we use main() in c

  • @harshitshreshthi4495
    @harshitshreshthi4495 7 лет назад +1

    Sir, In code blocks C++ programs when we include a header file thn it gives error nd when we remove .h extension thn their wil be no error there.How???

    • @mysirgdotcom
      @mysirgdotcom  7 лет назад

      See this sample program in CPP on code blocks and remove all your confusions ruclips.net/video/t-utAfBiZPo/видео.html&list=PLLYz8uHU480i1pSs2w_Vzp671ea95PeWY

  • @abiddar4280
    @abiddar4280 7 лет назад

    Sir ur great , in code passing arry to function why square brackets are empty in function definition if it is error.

  • @pardeepmalik1672
    @pardeepmalik1672 7 лет назад +4

    You are Great sir G

  • @vineetsharma2163
    @vineetsharma2163 6 лет назад

    Sir ye aur bataye ki stdio.h header file conio.h and many header files h kab konsi likhni h kya detail me bataye he sir

  • @akshaychacharkar7844
    @akshaychacharkar7844 8 лет назад +2

    Library files kaise include hoti h, sir

    • @MixCombo
      @MixCombo 4 года назад

      wo include nhi hoti
      linking time ma linker '.o' file ko '.lib' files ke sat link kr deta ha jisa humari '.exe' file banti ha

  • @smithrai4040
    @smithrai4040 5 лет назад +1

    Thank u sir ...my question is why we write int main() or float main void main etc why not we write char main or double main() ..plzz teach us the funda of these plzz

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

      These are used when we want to specify what our main function is going to return

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

      These are return type of functions

  • @_WHO_AMI
    @_WHO_AMI 7 лет назад

    Sir #hi ku lgate h ?

  • @hemantkumar-007
    @hemantkumar-007 8 лет назад +2

    lekin sir linux ke compiler me without header file program kabhi run nahi hota h..

  • @simransingh5137
    @simransingh5137 8 лет назад

    sir jb preprocessor ny content ko copy krdia to pher linker ny .lib file sy knsi chez link ki? And what do you mean by content? kya content predefined function ka code hy?agar yes to pher linker ny .lib file sy kya link kiya? kyu k content to phly e copy ho gya tha program me jis k baad compiler chla

    • @simransingh5137
      @simransingh5137 8 лет назад

      Sir what is header file content ?

    • @simransingh5137
      @simransingh5137 8 лет назад

      sir what is header file content?

    • @simransingh5137
      @simransingh5137 8 лет назад

      Saurabh Shukla sir you mean to say that preprocessor ny "stdio.h" ko copy kiya and Linker ny "stdio.h" ki coding humary program me ad krdi..Am i right sir?

  • @AnupSingh-dv5lt
    @AnupSingh-dv5lt 7 лет назад

    dear sir,
    In the header file #include why we are writing stdio ??

    • @talibabbas4010
      @talibabbas4010 5 лет назад

      # is a preprosesor directive and include is a commond for preprocessor program and stdio.h is file which content the decleration of the predefine function like...printf()..scanf()..getch and clrscr()..

  • @ganeshsinghbisht7031
    @ganeshsinghbisht7031 7 лет назад +1

    Sir kyaa.. Hum kudd ki header file bnaa kr use kr sktee or kese...?

    • @mysirgdotcom
      @mysirgdotcom  7 лет назад

      yes bana sakte hain. make a file and save with .h

    • @enjoywithlife94
      @enjoywithlife94 7 лет назад

      how to make our own header file?

    • @ankitkumar-tu9pj
      @ankitkumar-tu9pj 6 лет назад

      @shalini
      Make a file & save with extension(.h).

  • @abhayraj216
    @abhayraj216 7 лет назад +1

    Sir I am Abhay from Delhi ,ak confusion hai sir ki jab ham kisi program me header file nahi lagate hai to kya usme preprocessor nahi chalta hai directly compiler chalta hai?

    • @rohitpawar4096
      @rohitpawar4096 6 лет назад

      Yes because the preprocessor work only when that sign is written (#).

  • @NinjaCoders
    @NinjaCoders 4 года назад

    lakin sir without hadder file compiler warning kyo deta he

  • @Adityasingh-kg2cj
    @Adityasingh-kg2cj 7 лет назад

    Thnx Sir for giving your important time on these video :)

  • @arpitjaiswal6471
    @arpitjaiswal6471 7 лет назад

    main()
    {
    printf("Hello ");
    }
    C4013 'printf' undefined; assuming extern returning int
    LNK1120 1 unresolved externals
    LNK2019 unresolved external symbol printf referenced in function main
    Sir I am using Visual Studio IDE Community Version 2015 and I am getting this 3 errors above is my program and all three errors please provide a solution.

  • @snehajitchandra2976
    @snehajitchandra2976 6 лет назад

    You are great explain sir!!!

  • @AnkitSingh-sy6mz
    @AnkitSingh-sy6mz 6 лет назад

    Hats off to u sirrr g...

  • @venkatsubbu2802
    @venkatsubbu2802 7 лет назад +2

    Sir Plz make a video how to create header file in C.

  • @aryansiddiqui2831
    @aryansiddiqui2831 5 лет назад

    Thank you sir
    Sir, how to create own header file?

  • @surajverma8687
    @surajverma8687 4 года назад

    Thank you sir you are my god in programing language

  • @usmanregard4835
    @usmanregard4835 7 лет назад

    Dear sir please tell me from which Lecture number you discuss "Why I am not using header files in a C program" I have found this video from youtube but unable to find its content from your website

    • @mysirgdotcom
      @mysirgdotcom  7 лет назад +1

      Visit www.mysirg.com
      or
      ruclips.net/video/j51aSRF5c10/видео.html&list=PL7ersPsTyYt2sohwBWF03kSpW1Ymt0Q9R

    • @mysirgdotcom
      @mysirgdotcom  7 лет назад +1

      visit on campus preparation video content

    • @usmanregard4835
      @usmanregard4835 7 лет назад

      Thanku sir g

  • @venkatsubbu2802
    @venkatsubbu2802 7 лет назад

    Sir use in between English words bcz we don't know Hindi fully..... U r videos very useful that why I tried understand Hindi and subject also.......... Both at time ha ha ha...Ha aha ha

  • @vishalraj9790
    @vishalraj9790 6 лет назад

    Sir apne starting me yr nahi bataya ki c language use kaha hota.. Kah Pr use krte h coding😞

  • @sourabhyadav4101
    @sourabhyadav4101 6 лет назад

    Sir tanks for this video mujhe bhi yeahi patta tha ki getch() screen ko hold kar kar rakhtaa hai aur uske liye header file conio.h lagana compulsary hai

  • @surajwaghmare9009
    @surajwaghmare9009 7 лет назад +1

    sir! you are great👍

  • @hashirkhan941
    @hashirkhan941 8 лет назад

    Sir polish notation program ka bhe ak video banado please....

  • @mithunyadav8826
    @mithunyadav8826 5 лет назад

    Super guru ji

  • @rajendrasahoo7264
    @rajendrasahoo7264 5 лет назад

    Thanks a lot for this video

  • @SurajKumar-mk8nt
    @SurajKumar-mk8nt 6 лет назад

    Awesome sir
    Thanks sir

  • @mukeshphulwani5972
    @mukeshphulwani5972 7 лет назад +3

    Plz dont use getch() in your programs it is not use nowdays... as conio.h is not used in mordern compilers... conio.h was ment to use for msdos compiler... Like turbo. visual studios, codeblocks dont.. need this may lead to error it may create confusion in students

  • @muhammeddonergoz2374
    @muhammeddonergoz2374 4 года назад

    can you add english subtitle please

  • @anandvijay1049
    @anandvijay1049 8 лет назад

    Sir Just Look At The Two Different Codes Which Gives Different Values For Same Function Having Same Arguement .
    #Compiled & Run On Turbo C
    #1 Which Doesn't Include math.h
    void main()
    {
    int a;
    clrscr();
    a=sqrt(9);
    printf("%d",a);
    getch();
    }
    Output : 688
    #2 Which Include math.h
    #include
    void main()
    {
    int a;
    clrscr();
    a=sqrt(9);
    printf("%d",a);
    getch();
    }
    Output : 3
    Why This Happens Sir ? Please Explain it .

  • @huyvole9724
    @huyvole9724 6 лет назад

    I remember getch function in conio header file, sir

  • @bijayalaxmi888
    @bijayalaxmi888 7 лет назад

    thank you very much sir

  • @sahil-el7ss
    @sahil-el7ss 5 лет назад

    Tq sir

  • @rubysing9263
    @rubysing9263 7 лет назад

    thank you sir

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

    Great!!

  • @smartcricketer7058
    @smartcricketer7058 8 лет назад

    thank you sir....

  • @kumarshivam9274
    @kumarshivam9274 7 лет назад

    thanks sir

  • @ayushgarg7666
    @ayushgarg7666 6 лет назад

    when assembler run

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

    Thanks ss

  • @saurabhrai4362
    @saurabhrai4362 7 лет назад

    thankxx sir

  • @AJAYSHARMA-gb6qw
    @AJAYSHARMA-gb6qw 8 лет назад

    thank you sirG

  • @kumaranshu9180
    @kumaranshu9180 8 лет назад

    thank u sir🙏