Functions In C: C Tutorial In Hindi #19

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

Комментарии • 1,1 тыс.

  • @sohammukherjee9264
    @sohammukherjee9264 2 года назад +761

    Those who did not understand pls see this ....I have tried to do it in a fresher way. The main problem is sir used several programs in same file.Here is the refreshed version.Hope you all guys find it helpful.👇👇👇👇
    1)// Without Argument and without return type
    #include
    void myname()
    {
    printf (" Soham Mukherjee");
    }
    int main()
    {
    printf ("My name is :");
    myname();
    return 0;
    }
    2)//With Argument with return value
    #include
    int sum ( int a,int b)
    {
    return a+b;
    }
    int main ()
    {
    int a,b,c;
    a=9;
    b=87;
    c= sum(a,b);
    printf ("The sum is %d
    ",c);
    return 0;
    }
    3)//Without Argument and with return value
    #include
    int takenumber ()
    {
    int i;
    printf ("Enter a number ");
    scanf("%d",&i);
    printf (" The number is %d
    ",i);
    return i;
    }
    int main ()
    {
    int c;
    c=takenumber();
    return 0;

    }
    4)//With Argument and Without return value
    #include
    void printstar (int n)
    {
    for (int i = 0; i < n; i++)
    {
    printf("%c",'*');
    }

    }
    int main()
    {
    printstar(7);
    return 0;
    }

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

    Thanks

  • @bibhoregoswami624
    @bibhoregoswami624 4 года назад +302

    You really deserve a huge respect for doing this job. You don't know how you are helping non CSE engineering students by providing this.
    Salute sir.

    • @yashvardhansingh6548
      @yashvardhansingh6548 2 года назад +26

      A little correction: Also helping the CS Students.

    • @gamerzkhargoshy505
      @gamerzkhargoshy505 2 года назад +4

      @@yashvardhansingh6548 Yes bro

    • @Yaxsth
      @Yaxsth 2 года назад +4

      Also C Programers
      of software enginerring

  • @lakshaykumar6181
    @lakshaykumar6181 4 года назад +429

    this is the only video which i was unable to understand till now from this playlist

    • @shivamarora9621
      @shivamarora9621 4 года назад +22

      same bro, bilkul samajh ni aya :(

    • @lakshaygaming6930
      @lakshaygaming6930 4 года назад +17

      Vahi to bro function se age kuch samajh nhi aya par function apni kaksha par samajh aa gya acha samjha rkha hai c++ mein

    • @shantomgamez1432
      @shantomgamez1432 4 года назад +23

      i thought i was the only one who didnt understand this video as compared to other videos this was slightly confusing

    • @lakshaygaming6930
      @lakshaygaming6930 4 года назад +2

      Hn apni kaksha acha se

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

      Same here

  • @yashkumar-jf5rf
    @yashkumar-jf5rf 4 года назад +5

    Hello sir.
    my name is Yash kumar.
    i belongs to meerut...sir apke video dekh kr mere programming bahoot improve ho gyi ha.. teacher ko bhi believe nahi hota mere programming dekh kr..sir me apko apna idle manta hu....apke hi sarre video dekta hu.. muje bahoot proud feel hota apne app per jab muje koi program deta ha ..aur me turant bna deta hu usko chaiye kaisa bhi ho..
    muje itna acha lgta ha socha app ke sath share karo...
    harry sir love you..

  • @RajeshYadav-lh1zc
    @RajeshYadav-lh1zc 4 года назад +27

    Harry bhai school se lekr college tk aagye or fir govt job b lg gye lakin programing language and concpt iske aapki video dekhkr smjh me aaye hai wrna to teacher ka muh dekhkr ratta marke pass huye the smjh m kuch nhi aaya tha kabhi.

    • @Toxic_shlok
      @Toxic_shlok 6 месяцев назад +1

      He may have the knowledge but not the ability to deliver his thing to viewers.
      You must not say like that to anyone

  • @vishalkarmakar418
    @vishalkarmakar418 3 года назад +219

    This lecture 19 needs to be watched several times if not understood becoz this video will crystal clear your functions topic literally i understood it perfectly

    • @AdityaThakur05
      @AdityaThakur05 3 года назад +16

      To without aruguments and without return ka code bata 😂

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

      how many times you watched it again?

    • @user-gd5fb7yf8n
      @user-gd5fb7yf8n 2 года назад

      @@muneebahmad2026 i clear this topic from another channel videos

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

      yeah

    • @ashish4k07
      @ashish4k07 2 года назад +5

      @@AdityaThakur05
      if before declaration
      void average() {
      float a,b,c;
      printf("Enter the value of 3 numbers a, b, c in a sequence : ");
      scanf("%f%f%f",&a,&b,&c);
      printf("The average of 3 numbers is = %.3f",((a+b+c)/3));
      }
      if after then simply declare it then function calling only

  • @keshavgaur4535
    @keshavgaur4535 4 года назад +1317

    Sir thoda kam samjh aaya . Function is tough :(

    • @ankursinger102
      @ankursinger102 4 года назад +70

      Mujhe bhi tough lga

    • @alfiyazahra4680
      @alfiyazahra4680 4 года назад +68

      @@ankursinger102 same here...is topic ko ar time daina chahiye tha...

    • @wipeesports8990
      @wipeesports8990 4 года назад +33

      Samajh nhi aya

    • @ytgamer2642
      @ytgamer2642 4 года назад +43

      bhot easy topic h mughe 1 st time me aa gya sir ne itni asani se smjhaya h ki koi doubt nhi h

    • @maheshgoyal2809
      @maheshgoyal2809 4 года назад +28

      dude this function is tough but if you practice more it will become easy, this is also called modularisation.

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

    sir aap kaafi acha padhaate hain, mere khyal se aapko har video ke aakhri me ek mcq type quiz bhi rakhni chahiye thi video ke contents se related aur aapko har video ke baad hw bhi dena chahiye jese practice programs jinme humlog padhaye gaye topics ko implement bhi kar saken par chaliye koi nahi, acha hain ki aapne yeh course mera college shuru hone se pehle hi banake khatam kardiya tha too me 1st semester me yeh pura course khatam karlungi fir aapka java vala course start karungi

  • @tutorialshack1369
    @tutorialshack1369 Год назад +3

    without argument and without return value
    #include
    void display(){
    printf("hello world");
    }

    int main()
    {
    display();
    return 0;
    }

  • @SadhguruKnows
    @SadhguruKnows 3 года назад +244

    void myname(){
    printf("my name is Sharma");
    }
    int main(){
    printf("what is your name?");
    myname();
    return 0;
    }
    Here, myname() is a function without argument and without return value!

    • @felix1211
      @felix1211 3 года назад +8

      damn son.

    • @player-ne6hs
      @player-ne6hs 3 года назад +7

      Sahi he

    • @lfg-shreyas
      @lfg-shreyas 2 года назад +8

      bruh you cannot use return keyword as it's without return value and without arguments lmao

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

      @@lfg-shreyas Take "void" instead of "int".
      And then you can neglect return at the end.

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

      But usme return 0 likha h....mujhe smjh nhi aaya👾

  • @manashalder3999
    @manashalder3999 3 года назад +8

    I completed 19 videos in 2 days.
    printf("Thank you harry bhai");

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

      Hello brother I want to tell you something can you Help me

  • @codificatore_05
    @codificatore_05 Год назад +3

    Fantastic Video once again... Thank you harry bhai for clearing my concets on Functions .. Thank you very much

  • @digambersinha
    @digambersinha 5 лет назад +41

    yr aap kitne laajawab ho...mtlb feel kr kr ke btate ho...experience level or Teaching level best h Sir aapka💓💓😊😊🙏🙏

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

    Whenever i watch your lectures my respect for you increases a lot ...Thanks on the behalf of all students who are achieving new milestones by watching your videos . Thanks for being our teacher .

  • @Amar-qk4hg
    @Amar-qk4hg 2 года назад +5

    Thank you so much I am watching your videos in 2023 It is very helpful. I am enjoying learning c language from you 🥰
    Huge respect and love You Sir😍

  • @jyotivirendraagrawal1484
    @jyotivirendraagrawal1484 4 дня назад +1

    Bro... I don't know what my Faculty's taught but this is actually easier to understand 🤔

  • @can_yaman780
    @can_yaman780 Год назад +21

    Thank you Harry Bhai for this valuable cource.
    #include
    void message(void);
    int main()
    {
    printf("My Introduction
    ");
    message();
    printf("My name is Can");
    }

    void message(void)
    {
    printf("I am a student
    ");
    }

    • @Professor_Shonku_
      @Professor_Shonku_ 11 месяцев назад +1

      Are you sure bro?

    • @Eagleditz
      @Eagleditz Месяц назад

      Bhai course ki spelling sikh lo... 😘

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

    Harry bhai you are great.. Mjy aj apki ye video dekhny ky bd functions smj ae wo bht achi tra.. Is sy phly bilkul b functions ka concept clear ni tha.. And done with quiz also💖

  • @cartoon_club4251
    @cartoon_club4251 4 года назад +31

    Ye video dekhne ke bad Aesi feeling aarhi jese Sari old Learning video ka mix masala ho gya😂. fully confused
    Or jab video dekh rha tha tab laga sirf muje samaj nhi aayi but jab aake cmmt dekhi toh😁🤣 Mere bhai bandu bhut sare mile 😁

  • @sukhdevjohly7807
    @sukhdevjohly7807 4 года назад +56

    #include
    void funcforharry()
    {
    printf("This is a function for 'codewithharry'
    Based on Without arguments and Without return value:-
    So #codewithharry you can see now their is no argument and no return value");
    }
    int main()
    {
    funcforharry();
    return 0; }

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

      Bro ...

    • @Abhishekkumar-fr1lp
      @Abhishekkumar-fr1lp 4 года назад

      Birooo.....

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

      @@_RajatDhullCSB bro nothing is returned here only line is being printed. Value will only be returned if we use *return* keyword.

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

      Thanks bro its helpful

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

      i did the same lol. came to check other people's answer

  • @jayeshparihar2416
    @jayeshparihar2416 Год назад +15

    I was so nervous before learning functions in C but after watching this video it has become an easy task to make functions...

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

    #include
    int main() { void display()
    {
    printf(" I am the function without argument and without return type ");
    }
    display(); return 0;}

    • @samali765-b1y
      @samali765-b1y Год назад +2

      Why you have written display instead of print?

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

      @@samali765-b1y I have written display(); at the last line that means i am calling the display function which is defined as void display(){ ...}.This function has a print statement which actually prints .

    • @samali765-b1y
      @samali765-b1y Год назад +1

      What if i write printf() instead of display(). Will it work same?

    • @samali765-b1y
      @samali765-b1y Год назад +1

      @@binodbastola8255 But harry sir has used printf as calling function in every way of defining function. I also searched and implement it on vs code by using prinf as calling function, it is giving me correct answer. But I think your logic is not true.

    • @samali765-b1y
      @samali765-b1y Год назад +1

      @@binodbastola8255 Printf is not reserved keyword it is library function.

  • @utkarshvibhav3058
    @utkarshvibhav3058 3 года назад +10

    Time stamp = 24:11
    Without arguments and return value:-
    int printing{
    printf("Hello Guys");
    }

    • @tamsilakhtar
      @tamsilakhtar 11 месяцев назад +3

      You have to use void instead of int

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

      thank you brother/sister@@tamsilakhtar

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

    Nhi iss video ke concepts easy the aur mujhe bhut easily smjh aa gya functions aur sath hi me video ....

  • @ITs_sr_14
    @ITs_sr_14 2 года назад +27

    1)avoid rewriting program
    2)we can devide work among programmers using function

  • @The.north.sider.shorts
    @The.north.sider.shorts 3 года назад

    Happy paaji tussi great ho! M beginner to web developer bn chuka hu apki videos dekh ke, thanks harry paaji

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

      Bhai kuch tips dede....kese kya padhe

    • @The.north.sider.shorts
      @The.north.sider.shorts 3 года назад

      @@Daily_life895 bablu g anytime, tips jb chahiye ho tb mil jae ge, ap email pr topic send krna dena

  • @62chandshaikh.23
    @62chandshaikh.23 4 года назад +65

    salute you harry sir,you really deserve respect.

  • @pythondeveloper-0.292
    @pythondeveloper-0.292 3 года назад +2

    Awesome sir

  • @Niveshalaya459
    @Niveshalaya459 3 года назад +42

    Please make a detailed video on functions.
    This is the only video which i was unable to understand till now from this playlist.😢

  • @priyaranjanpradhan7418
    @priyaranjanpradhan7418 4 года назад +7

    harry bhai.....function ke upar ek aur vedio post kijie......please........sirf example leke samjhana

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

    #include
    void stars()
    {
    printf("hellow world");

    }
    int main()
    {
    stars();
    return 0;
    }

  • @ITs_sr_14
    @ITs_sr_14 2 года назад +29

    A function can be called multiple time to provide reusability and modularity

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

    Without argument without return value:
    #include
    int apple(){
    printf("Apple");
    }
    int main(){
    apple();
    }

  • @nahiarabeer
    @nahiarabeer 4 года назад +12

    Harry is carry in programming world
    🔥🔥🔥

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

    Without argument and Without return =
    #include
    Void printHello();
    int main()
    {
    PrintHello();
    }
    Void printHello()
    {
    Printf("Hello");
    }

  • @rakeshranjanprabhat9218
    @rakeshranjanprabhat9218 3 года назад +6

    sir u r great
    {.intially i was facing much prblm in C ,but i started your video ,i felt very comfortable in C},thank you so much for videos;

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

    Ur rock ur great desi style ka example zabardast laga bhai....

  • @_anway
    @_anway 2 года назад +15

    Thank you brother I was struggling with functions for a while now and your video made my concept on functions crystal clear. I am really grateful!!

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

      Same here

  • @tejasnere7125
    @tejasnere7125 7 месяцев назад

    Simple program with
    Without argument and without return value :-
    #include
    void letter()
    {
    printf("Hello world");
    }
    int main()
    {
    letter();
    return 0;
    }

  • @mohdzeeshan7870
    @mohdzeeshan7870 4 года назад +188

    Sir I understood your all videos but this video created a confusion...🤔

    • @ayushdabhi5138
      @ayushdabhi5138 4 года назад +6

      yes sir this video created a confusion...

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

      @রহস্যময়ী কাহিনী tomak confusion hoyene

  • @asmitapatil5266
    @asmitapatil5266 4 года назад +2

    Awesome explanation of functions👏👏👏👌👌👌

  • @premshankarsaini5375
    @premshankarsaini5375 Год назад +3

    Jai shree ram ji 🙏😇🙏🙏
    God bless you 😇

  • @umairabdullah9041
    @umairabdullah9041 2 года назад +5

    10:12 (Declaration, defination, call) Important

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

    Thanks for teaching sir

  • @dikshajain9845
    @dikshajain9845 4 года назад +12

    # include < stdio.h>
    Void func ( )
    {
    int i;
    printf ("enter a number");
    scanf("%d",&i);
    }
    int main ( )
    {
    func( )
    print (" The entered value is %d",i);
    return 0;
    }
    Is this correct bhaiya???

    • @editorsmusic7808
      @editorsmusic7808 4 года назад +1

      Printf not printf in main function other than overything ok
      Hii Diksha

    • @editorsmusic7808
      @editorsmusic7808 4 года назад +1

      Printf not printf in main function other than overything ok
      Hii Diksha

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

      no it is wrong
      you have to use star funcation for no return value and for no arguement you have to use scanf
      thats it

    • @-HARSHAGARWAL
      @-HARSHAGARWAL 3 года назад +2

      Hii diksha , Harsh here!!
      Every thing ok but aapne function ko call kiya par use koi variable assign nahi kiya!!

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

      I think there should be a semi colon(;) after func() in main function as it is a function call.

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

    kiya harry bhai app too eakdom gajab he kar daytay hooo .... itna achha say kon samjha ta hay ??????

  • @vishalchauhan9832
    @vishalchauhan9832 5 лет назад +5

    Excellent lecture

  • @secular786
    @secular786 8 месяцев назад +1

    24:03 *Without argument, without return value*
    #include
    #include
    void name();
    int main(){
    int e;
    char c;
    printf("Enter your name:");
    scanf("%c",&c);
    e =(int)c;
    printf("The ASCII value of your name's First Letter %c is: %d",c,e);
    }
    void name(){
    printf("Done!");
    }

  • @MukeshKumar-qy9jz
    @MukeshKumar-qy9jz 4 года назад +120

    don"t mess up things in our mind by using multiple functions in same file
    make it easy bro

    • @onlysisir
      @onlysisir 4 года назад +6

      Yes....going too fast 😵😵

    • @moh.munavvar1768
      @moh.munavvar1768 3 года назад +3

      @Shiv Pawar lol tmhe samajh nhi aya to gaali do ge c in one video dekho harry ki sab samajh ayega

    • @Sandeepkumar-se5zu
      @Sandeepkumar-se5zu 3 года назад

      @@moh.munavvar1768 sch me ??? itta acha h ??/

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

    Sir I have completed quiz.thanks a lot..

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

    U ARE GREAT WITH CONTENT BROO!!!!

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

    as expected you are great teacher ❤ love you sir 😘

  • @Mkr1881
    @Mkr1881 3 года назад +80

    Sir!make a bigger video on fuction with more explanation. Previous videos was under stable bt, this 1 arises many confusions🙄

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

    Thanks sir for beautiful explaining🎉❤

  • @adipshah4392
    @adipshah4392 3 года назад +8

    we can create function even without declaring it by defining it before main function.
    I understood this after this video🤣

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

    Char video ke baad bas apka samaj .me aya thanks

  • @crucialgyaan
    @crucialgyaan 4 года назад +5

    Void main is the which has no arguments and no returne value

  • @VickyChouhan-j2p
    @VickyChouhan-j2p 26 дней назад

    U are the best coder

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

    This playlist can never b a beginner friendly.

  • @khushisinghi5932
    @khushisinghi5932 5 месяцев назад +1

    thnks

  • @ankursinger102
    @ankursinger102 4 года назад +5

    Sir yeh topic thda sa tough lga plzz is prr aur detailed video bnaiye easy way m🙏🙏

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

    Thanks sir for these wonderful lectures ❤️

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

    Void function we can use which has no return value and no arguments

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

    Sir...ur over powered in ur teaching techniques.....all clear😁😁😁♥️♥️

  • @engineerbhai7642
    @engineerbhai7642 5 лет назад +3

    Bestcoder in you tube

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

    Harry sir aapne bhut achha smjhaya👍🏻👍🏻

  • @technicaltutorialarena
    @technicaltutorialarena 5 лет назад +33

    Without argument without return
    #include
    #Include
    int sum();
    Void main
    {
    int c;
    c=sum();
    printf("sum=%d",c);
    getch();
    }
    int sum()
    {
    int a, b;
    printf("enter two numbers ");
    scanf("%d%d",&a, &b);
    return(a+b);
    }
    Challenge accepted.

    • @akshatj21
      @akshatj21 4 года назад +18

      you are returning (a+b) so its without argument but with a return.

    • @WaltonGamingYt
      @WaltonGamingYt 4 года назад +12

      Instead of return, printf("the sum is = %d", a+b)

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

      Witout argument and with return type hai yeh

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

      It has a return value.... So this condition falls in without argument and with return valur

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

      It is return and no argument function

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

    Thank for such a nice explanation. 👍❤

  • @TechnicalAnkesh
    @TechnicalAnkesh 4 года назад +10

    #include //Header File
    void Ankesh()
    {
    printf("Hello World
    ");
    }
    int main()
    {
    Ankesh();
    return 0;
    }
    output:
    Hello World

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

      right

    • @harshitpant07
      @harshitpant07 4 года назад +1

      bro without return means?

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

      @@harshitpant07 it means that it is not going to take anything and will not return anything

    • @TechnicalAnkesh
      @TechnicalAnkesh 4 года назад +1

      @@harshitpant07 if you don't want to write return 0; you can write void main() instead of int main()

  • @snehalshinde5907
    @snehalshinde5907 Год назад +4

    #include
    void sum(void);
    int main()
    {
    sum();
    }
    void sum(void)
    {
    int a,b,c;
    a=10,b=10;
    c=a+b;
    printf("%d",c);
    }
    without arguments without return

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

    harry bhai, i know i am late but ek suggestion, pls thohda code zyada karwaya karo practically zyada acche se samajh aata hai

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

    without argument and without return value: void main()

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

    Thnx.... Sm.... 🤗

  • @ITs_sr_14
    @ITs_sr_14 2 года назад +5

    Return type. Functionname(parameter)
    {
    Return anything
    }

  • @souravkumar7283
    @souravkumar7283 4 года назад +16

    Patience = Harry sir
    Amazing teaching skills = Harry sir

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

    All those who are commenting nhi samjh aaya ..dont depend on RUclips completely, you can buy book 'let us C' for better understanding
    Harry sir is explaining good...you should come here after some preperation,

  • @Sureshkumar-yn9ti
    @Sureshkumar-yn9ti 11 месяцев назад

    very very thankyou sir amazing teach 🤩🤩☺☺

  • @fairy_tales10
    @fairy_tales10 3 года назад +8

    Your teaching style is just awesome ❤

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

    thank you for explaining so nicely bhai

  • @talkwithhardy4322
    @talkwithhardy4322 2 года назад +7

    void put(){ //without argument , without return value
    int q, r;
    printf("enter number of q: ");
    scanf("%d", &q);
    r=q+q;
    printf("after adding q, value is : %d", r);
    int main()
    {
    put();
    }
    // I hope it will useful for everyone

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

    // Function without arguments and without return value
    #include
    void GM(){
    printf("good morning");
    }
    int main() {
    GM();
    return 0;
    }

  • @rahilbadi7641
    @rahilbadi7641 5 лет назад +15

    Include
    Void guys (){
    Printf ("hello guys");
    }
    Void main (){
    Guys();
    }

    • @sc5084
      @sc5084 7 месяцев назад

      wrong bhai G and g different hote hain
      Bss bata raha hu

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

    All cases are done thanks bhaiya

  • @debodhkumar2905
    @debodhkumar2905 4 года назад +14

    WITHOUT ARGUMENT AND WITHOUT RETURN VALUE :-
    #include
    #include
    void sum();
    int main()
    {
    sum();
    return 0;
    }
    void sum()
    {
    int a, b, c;
    printf("enter two numbers
    ");
    scanf("%d%d", &a, &b);
    c = a + b;
    printf("the sum of two numbers is
    %d", c);
    }

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

      Upar function main termination ni lagta;;

  • @therealview5880
    @therealview5880 6 месяцев назад

    #include
    void practice ()
    {
    printf("This code for without argument and without return value ");
    }
    int main()
    {
    parctice() ;
    return 0;
    }

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

    Function with arguments and with return value
    #include
    //this is function declaration
    int multiply(int a,int b);
    int main() {
    int a,b,c;
    printf("Enter the two values you want to multiply :
    ");
    printf ("first value:
    ");
    scanf("%d",&a);
    printf ("Second value :
    ");
    scanf("%d",&b);
    c = multiply(a,b);
    printf("The value of multiplication is %d
    ",c);

    }
    //this is function defination
    int multiply(int a ,int b){
    return a*b;
    }

  • @shresthchaudhary2985
    @shresthchaudhary2985 2 месяца назад +5

    2024 mai kon kon freshers dhek rhe hai es video ko?

  • @SisodiyaTech
    @SisodiyaTech 4 года назад +5

    #include
    void Harry()
    {
    printf ("harry is best ") ;
    }
    int main ()
    {
    Harry();
    }

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

    Brother bahut badiya

  • @Bestcricketfantasy
    @Bestcricketfantasy 3 года назад +6

    with argument and no return value, you are not defined "i', when you used for loop, while your programm currectly compile, how is possible, please reply as soon as

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

      In for loop He writes int i; we can also declare the variable in between the loop

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

      Exactly

  • @13naaz
    @13naaz 2 года назад +4

    #include
    void display()
    {
    printf("Have a nice day");
    }
    int main(){
    display();
    return 0;
    }

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

    Thank you sir for best teaching 😊

  • @manoor0858
    @manoor0858 6 месяцев назад +3

    this topic is halwa after learning java from u ,tho i can relate jb mai phli baar pdha tha mje bhi bhot din lage the samajhne me ,toh guys just try to understand jitna ni smjh aya,1-2 din baad firse video dekhna and also do question practice usse concept aur clear ho jayega.Thanks :D

  • @anujchouksey3026
    @anujchouksey3026 5 лет назад +18

    #include
    void function()
    {
    int j;
    printf("Enter a number
    ");
    scanf("%d",&j);
    if(j>=10){
    printf("The number entered is not a single digit number
    ");
    }
    else printf("The number entered is a single digit number");
    }
    int main()
    {
    function();
    return 0;
    }

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

    Please make another video on functions with more examples then it will become easy to understand

  • @vinayakgoyal8099
    @vinayakgoyal8099 4 года назад +1

    mast video he bhai

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

    ye wala video lagta h 10 bar dekhna parega....utna samaj nahi aya

  • @aryanbhavsar3738
    @aryanbhavsar3738 4 года назад +2

    Zakaas..!!! Thank u very much sir

  • @oneseven1
    @oneseven1 3 года назад +10

    Thoda complicate hogaya.! Please make a new video on functions again with better examples.