How to write our Name 100 times in C Programming. C Compiler in Mobile. Basic Tutorial.

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2022
  • How to write our Name 100 times in C Programming. C Compiler in Mobile. Basic Tutorial. #shorts
    ‪@Adi_Gamer_Hub‬

ความคิดเห็น • 163

  • @mcflurry8743
    @mcflurry8743 ปีที่แล้ว +129

    youre a king for coding on mobile lmao

    • @user-bn2jl4fk3f
      @user-bn2jl4fk3f 10 หลายเดือนก่อน +1

      #include
      #define MAXCHAR 1000
      int main() {
      FILE *fp;
      char str[MAXCHAR];
      char* filename = "E:\mk.txt";
      fp = fopen(filename, "r");
      if (fp == NULL){
      printf("Could not open file %s",filename);
      return 1;
      }
      while (fgets(str, MAXCHAR, fp) != NULL)
      printf("%s", str);
      fclose(fp);
      return 0;
      }

    • @mcflurry8743
      @mcflurry8743 8 หลายเดือนก่อน

      @RexIsW509 ich if u need 10k lines for a py game ur a bad programmer

    • @CripsyBanks
      @CripsyBanks 10 วันที่ผ่านมา

      @@user-bn2jl4fk3f
      extern GetStdHandle
      extern WriteFile
      extern ExitProcess
      section .rodata
      msg db “you’re monkey”, 0x0d, 0x0a
      msg_len equ $-msg
      stdout_query equ -11
      section .data
      stdout dw 0
      bytes_written dw 0
      section .text
      global start
      start:
      mov rcx, stdout_query
      call GetStdHandle
      mov rcx, msg
      mov r8, msg_len
      mov r9, bytes_written
      push qword 0
      call WriteFile
      xor rcx, rcx
      call ExitProcess

  • @t3ddy.n4h1d
    @t3ddy.n4h1d 7 หลายเดือนก่อน +17

    In python> for i in range('...')
    print('text')

    • @konstantinhartrampf2651
      @konstantinhartrampf2651 2 หลายเดือนก่อน +2

      Nah it would be
      name = input("Enter your Name")
      for i in range (100):
      print(name)
      still python is so much simpler than C

  • @abhishankpaul
    @abhishankpaul 10 หลายเดือนก่อน +35

    Note: while using scanf, ensure that the function does not take character inputs more than one less than the character array.
    Here, you allocated size a[100], so in scanf, you should write: scanf("%99s",&a);
    Where, 99 denotes the first 99 characters to be taken as input at max and the characters following 99th character will be automatically discarded. Note that I told 99 characters because character array should also contain "\0"

    • @user-dl1rs2by2e
      @user-dl1rs2by2e 9 หลายเดือนก่อน

      Employee Data base
      #include
      #include
      #include
      #include
      #define MAX 100
      typedef struct employee
      {
      int id;
      char name[20];
      int age;
      }emp;
      emp e[MAX];
      int n;
      void create();
      void display();
      void modify();
      void append();
      void search();
      void sort();
      int main()
      {
      int choice;
      while(1)
      {
      printf("
      1.Create
      2.Display
      3.Modify
      4.Append
      5.Search
      6.Sort
      7.EXIT");
      printf("
      Enter Your Choice:");
      scanf("%d",&choice);
      switch (choice)
      {
      case 1:create();
      break;
      case 2:display();
      break;
      case 3:modify();
      break;
      case 4:append();
      break;
      case 5:search();
      break;
      case 6:sort();
      break;
      default:exit(0);
      }
      }
      getch();
      }
      void create()
      {
      int i;
      printf("Enter The No. of New Records to Be Created:");
      scanf("%d",&n);
      for(i=0;i

    • @arhamkhan6817
      @arhamkhan6817 8 หลายเดือนก่อน +1

      Bhai c language online kaha sikhr

    • @abhishankpaul
      @abhishankpaul 8 หลายเดือนก่อน

      @@arhamkhan6817 youtube videos and books. I will recommend Portfolio Course followed by Code with Harry channels
      For books, I will recommend "The C Programming Language" by Dennis Ritchie and Brian Kernighan. Ritchie and Ken Thompson were the inventors of the language, so the best thing is to read what the inventors themselves have to say about the language. Also, there are manuals about standard C library in GNU or GCC official website I don't remember. You can read many things from the files available in the website as well

    • @ZeekerDog
      @ZeekerDog 8 หลายเดือนก่อน +1

      Thats because /0 is the null value at the beginning of a string correct

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 4 หลายเดือนก่อน +1

      ​@@ZeekerDogthe null byte us at the end of an string

  • @Enthusiasm-motive999
    @Enthusiasm-motive999 7 หลายเดือนก่อน +15

    How many of them are want to this coding is only in computer 😂

  • @NiteshTiwari-qu9mr
    @NiteshTiwari-qu9mr 5 หลายเดือนก่อน +26

    Bhai itna lamba code kyu likh rhe ho short. #include
    int main(){
    for(int i=0;i

    • @Shin_ChanOO7
      @Shin_ChanOO7 4 หลายเดือนก่อน +2

      Yadi kisi aur se uskaa naam likhwaana hai to?

    • @Esports1WNL
      @Esports1WNL 4 หลายเดือนก่อน +2

      Variable is fixed in ur case where as the variable is user defined in the video

    • @Vivekanand_06
      @Vivekanand_06 4 หลายเดือนก่อน

      Error i not deared

    • @tarnation7619
      @tarnation7619 หลายเดือนก่อน

      ​@@Shin_ChanOO7 string store krwade and usko print krwade

  • @nikhithareddy607
    @nikhithareddy607 11 หลายเดือนก่อน +9

    Impressive ❤

  • @louisinfini274
    @louisinfini274 18 วันที่ผ่านมา +1

    Thts why i love python😢

  • @rajwanivinit560
    @rajwanivinit560 ปีที่แล้ว +3

    Thanks bro❤️

  • @kallamadikoushik534
    @kallamadikoushik534 9 หลายเดือนก่อน +2

    you can use for loop for that in c language

  • @sarojasannidhi6778
    @sarojasannidhi6778 หลายเดือนก่อน

    It's really working bro thx

  • @sibani1687
    @sibani1687 11 หลายเดือนก่อน +3

    Which app

  • @nivedhithar0648
    @nivedhithar0648 ปีที่แล้ว +1

    nice

  • @godswaymission-pp3tl
    @godswaymission-pp3tl 2 หลายเดือนก่อน +6

    💛jesus is true God believe me💛

    • @alienasssemble
      @alienasssemble หลายเดือนก่อน

      Stupid get some work

  • @Yashwant_Chavan
    @Yashwant_Chavan 9 หลายเดือนก่อน +18

    //string without ptr 😅
    #include
    #include
    #include
    int str_length(char[]);
    void str_copy(char[], char[]);
    void str_rev(char[], char[]);
    int str_cmp(char[], char[]);
    void str_substr(char[], char[]);
    void str_cat(char[], char[]);
    int main() {
    char str1[50], str2[50], str3[50];
    int len, choice, flag;
    printf("Enter Choice 1-Length, 2-Copy, 3-Reverse, 4-Compare, 5-Substring, 6-Palindrome, 7-Concatenation
    ");
    printf("Enter choice
    ");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
    printf("Enter first string
    ");
    scanf("%s", str1);
    len = str_length(str1);
    printf("Length of string is = %d
    ", len);
    break;
    case 2:
    printf("Enter first string
    ");
    scanf("%s", str1);
    str_copy(str2, str1);
    printf("Copied string is = %s
    ", str2);
    break;
    case 3:
    printf("Enter first string
    ");
    scanf("%s", str1);
    str_rev(str2, str1);
    printf("Reversed string is = %s
    ", str2);
    break;
    case 4:
    printf("Enter first string
    ");
    scanf("%s", str1);
    printf("Enter second string
    ");
    scanf("%s", str2);
    flag = str_cmp(str1, str2);
    if (flag == 0)
    printf("Both strings are equal
    ");
    else
    printf("Both strings are not equal
    ");
    break;
    case 5:
    printf("Enter first string
    ");
    scanf("%s", str1);
    str_substr(str1, str2);
    break;
    case 6:
    printf("Enter first string
    ");
    scanf("%s", str1);
    str_copy(str2, str1);
    str_rev(str3, str1);
    if (strcmp(str2, str3) == 0)
    printf("The string is palindrome
    ");
    else
    printf("The string is not palindrome
    ");
    break;
    case 7:
    printf("Enter first string
    ");
    scanf("%s", str1);
    printf("Enter second string
    ");
    scanf("%s", str2);
    str_cat(str1, str2);
    printf("Concatenated string is = %s
    ", str1);
    break;
    }
    return 0;
    }
    int str_length(char str1[]) {
    return strlen(str1);
    }
    void str_copy(char str2[], char str1[]) {
    strcpy(str2, str1);
    }
    void str_rev(char str2[], char str1[]) {
    int len = strlen(str1);
    for (int i = 0; i < len; i++) {
    str2[i] = str1[len - i - 1];
    }
    str2[len] = '\0';
    }
    int str_cmp(char str1[], char str2[]) {
    return strcmp(str1, str2);
    }
    void str_substr(char str1[], char str2[]) {
    int position;
    printf("Enter position=");
    scanf("%d", &position);
    strncpy(str2, str1 + position, strlen(str1) - position);
    str2[strlen(str1) - position] = '\0';
    printf("Substring is %s
    ", str2);
    }
    void str_cat(char str1[], char str2[]) {
    strcat(str1, str2);
    }

    • @localcriminalboys3885
      @localcriminalboys3885 5 หลายเดือนก่อน +3

      Oh my god you awesome guy

    • @user-rf7iy6bw7u
      @user-rf7iy6bw7u 3 หลายเดือนก่อน

      But your not declare in switch statement "default"😢😢

    • @pandashots2690
      @pandashots2690 หลายเดือนก่อน

      ​@@localcriminalboys3885 copy paste bro 😂😂😂😂😂

  • @exp.short.7651
    @exp.short.7651 6 หลายเดือนก่อน +2

    Sir please please please reply
    Sir mujhe print karna hai 12345 and 54321 but ye 1(for) ke under likhna he single for loop please make this program output 12345 and 54321

  • @SONUKUMAR-fj8qh
    @SONUKUMAR-fj8qh 11 หลายเดือนก่อน +1

    Sir kitna bar name print karna oh number type kar aap print karo

  • @FightGod2006
    @FightGod2006 6 หลายเดือนก่อน +2

    Hey guys there is no
    so everything will be in a single line right😮

  • @syedanasraza8788
    @syedanasraza8788 9 วันที่ผ่านมา

    Bhai AP ny enter name likhny k bd Kis button ko press kia h

  • @atulsitholiya29
    @atulsitholiya29 11 หลายเดือนก่อน +25

    It's not working

    • @elorvn
      @elorvn 11 หลายเดือนก่อน +2

      ?

    • @manovikas6386
      @manovikas6386 8 หลายเดือนก่อน +1

      There is an error

    • @User-ut8tp
      @User-ut8tp 5 หลายเดือนก่อน +1

      Yo have u added this header
      #include

    • @sivachandran5702
      @sivachandran5702 2 หลายเดือนก่อน

      No he did not include,(&) symbol in scanf

  • @apdirahmanapdulahi6397
    @apdirahmanapdulahi6397 8 หลายเดือนก่อน +1

    Static storage classes

  • @user-ht9sy4yc2e
    @user-ht9sy4yc2e 6 หลายเดือนก่อน +1

    100character 100 name print f me Naam Dala
    For loop lagaya boom❤lovely

  • @morningshorts6967
    @morningshorts6967 9 หลายเดือนก่อน +1

    Hi sir

  • @AnushkaKumar-hj9ds
    @AnushkaKumar-hj9ds 4 หลายเดือนก่อน

    Aap phone par program kis app or website kar kar rahai ho please tell me

  • @luckyff8508
    @luckyff8508 ปีที่แล้ว +2

    How to change name in the programming hub

  • @souvikray6895
    @souvikray6895 17 วันที่ผ่านมา

    Bro
    Its very easy not to use string for this .
    #include
    int main()
    {
    for(int i=0;i

  • @aman.saklanii
    @aman.saklanii 10 หลายเดือนก่อน +4

    Music is giving me ear cancer

  • @blossompic7
    @blossompic7 7 หลายเดือนก่อน +1

    How to give delay

  • @Sahil_Gaming1029
    @Sahil_Gaming1029 10 หลายเดือนก่อน +1

  • @CodesKNotes
    @CodesKNotes 11 หลายเดือนก่อน

    C is a procedural language that provides no support for objects and classes. C++ is a combination of OOP and procedural programming languages.

    • @AEONIC_MUSIC
      @AEONIC_MUSIC 9 หลายเดือนก่อน

      You can still create them in c it just takes more work an knowledge

  • @snplvrff8442
    @snplvrff8442 4 หลายเดือนก่อน +2

    Where is ampersand(&) in scanf() 🤔

    • @CryptoSeekerr
      @CryptoSeekerr 2 หลายเดือนก่อน

      In string it is not used

  • @Aaditya_karn
    @Aaditya_karn ปีที่แล้ว +1

    ❤❤

  • @ncludelife.h
    @ncludelife.h 4 หลายเดือนก่อน +1

    Where is '&' in scanf😅

  • @user-kq3gc2gi8z
    @user-kq3gc2gi8z 10 หลายเดือนก่อน

    Charactere kae jagh stirng kha se bhai

  • @Oldmonkyt27
    @Oldmonkyt27 5 หลายเดือนก่อน

    I need think website link bro

  • @atulpawar2393
    @atulpawar2393 9 หลายเดือนก่อน

    is editor ka naam kyaa hai

  • @KNagaveniKNagu
    @KNagaveniKNagu 9 หลายเดือนก่อน

    How do you download please show me

  • @kkrlovers5031
    @kkrlovers5031 28 วันที่ผ่านมา +1

    Error scanf("%s", &a); & missing😂

  • @yuvraj_99
    @yuvraj_99 6 หลายเดือนก่อน +3

    What is the mean of \t in for loop

  • @Memesadi
    @Memesadi 6 หลายเดือนก่อน +1

    Bhai meraa name kaise detect kar liya yar

  • @DhanushMangali
    @DhanushMangali 10 หลายเดือนก่อน +1

    Anna super anna
    Nuv naak nacchav anna
    🎉🎉❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @user-nf2wl9go3e
    @user-nf2wl9go3e 8 หลายเดือนก่อน +1

    Which app uesing you?

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      Online C compiler on Google chrome.

  • @Amg-m8j
    @Amg-m8j 6 หลายเดือนก่อน +1

    %c is included

  • @patalaysangeetha1853
    @patalaysangeetha1853 หลายเดือนก่อน

    Suggest me the best app for C language

  • @PIRI....
    @PIRI.... 7 หลายเดือนก่อน

    Is it possible on mobile...?

  • @yahia098
    @yahia098 7 หลายเดือนก่อน +1

    The song is an atrocity man please remove it please....

  • @user-vm7lp6tt9y
    @user-vm7lp6tt9y 3 หลายเดือนก่อน

    Bhai scanf mai (&) nahi lgaya

  • @Eccedentesiast_introverts07
    @Eccedentesiast_introverts07 ปีที่แล้ว

    Bro link?

  • @akshatmauryavlog
    @akshatmauryavlog 5 หลายเดือนก่อน

    App Name

  • @dpdoll_editz
    @dpdoll_editz 3 หลายเดือนก่อน

    < why we using this symbol?

  • @rexnoob676
    @rexnoob676 ปีที่แล้ว

    How to do this in Android

  • @Passionate-everytime
    @Passionate-everytime 6 หลายเดือนก่อน +1

    I don't get my name many times as your

    • @Passionate-everytime
      @Passionate-everytime 5 หลายเดือนก่อน

      Later on I get it but it's amazing I'm learning coding too but now there are exams so I quit for some time after all it's final exam

  • @K.ChaithraChaithu
    @K.ChaithraChaithu หลายเดือนก่อน

    How will take a

  • @deenarasmin9350
    @deenarasmin9350 9 วันที่ผ่านมา

    Bro i got compiling error

  • @williamvesterberg1107
    @williamvesterberg1107 2 หลายเดือนก่อน

    doesnt

  • @dharshinivenkatesan3691
    @dharshinivenkatesan3691 ปีที่แล้ว

    100 times name varala

  • @MSaiprasad-rk7hj
    @MSaiprasad-rk7hj 9 หลายเดือนก่อน +2

    App name tell bro

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      Online C compiler on Google chrome

  • @kv9458
    @kv9458 13 วันที่ผ่านมา

    Python write it's just 2 lines

  • @sushilkumar-xl5ru
    @sushilkumar-xl5ru 5 หลายเดือนก่อน

    your name is aditya

  • @KPASHOKRA
    @KPASHOKRA 22 วันที่ผ่านมา

    Python
    Print( "Enter the name:")

  • @harshar.k156
    @harshar.k156 หลายเดือนก่อน

    The BGM IS irritating

  • @MRGamesStreamer
    @MRGamesStreamer 2 หลายเดือนก่อน

    Python made easier that is print(name*100) simple😂😂

  • @Yourfavorite60
    @Yourfavorite60 8 หลายเดือนก่อน

    Using loop would have make it easier

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      But usne to loop use kiya hi hai.🙄

  • @cutefitness2757
    @cutefitness2757 7 หลายเดือนก่อน +1

    App name please 🥺🥺

    • @Heroxyy
      @Heroxyy 6 หลายเดือนก่อน

      C coding ❤

  • @YOworldYO
    @YOworldYO 24 วันที่ผ่านมา

    Enter your name😂

  • @akhnoorianvlog3121
    @akhnoorianvlog3121 11 วันที่ผ่านมา

    6&7 line galat hai

  • @filmyadda2350
    @filmyadda2350 6 หลายเดือนก่อน +1

    Broo what is mean by %s

    • @BLACKHATHAKER
      @BLACKHATHAKER 5 หลายเดือนก่อน

      Percent s

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 4 หลายเดือนก่อน

      Its the format specifier for a string

  • @pankaj54653
    @pankaj54653 9 หลายเดือนก่อน

    Kam hi nahi kar raha hai

  • @Jayanthpasupuleti
    @Jayanthpasupuleti 9 หลายเดือนก่อน

    Not working

  • @aryanmaske8649
    @aryanmaske8649 10 หลายเดือนก่อน

    & likhe bina run hua😂😂😂

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      Yes because a[100] ek string hai jo ki character array hai or character array ek pointer bhi hota hai
      So is hisab se s string ek pointer hua usme & ke bina bhi program kam krega.

  • @Abbas_hasan_
    @Abbas_hasan_ 11 หลายเดือนก่อน

    What if I don't write return 0
    Just write void main() in place of int main()

    • @electrobean
      @electrobean 11 หลายเดือนก่อน +1

      It’s a C thing. Other languages use a different approach (for example Java) and do use a void function as their main with a separate function to exit with a specific code.

    • @Username92381
      @Username92381 9 หลายเดือนก่อน +1

      If you don't write return 0 it's completely okey. Return 0 means that we expecting code to finish executing himself.

  • @Gnaneshwarreddy9851
    @Gnaneshwarreddy9851 ปีที่แล้ว +2

    App name

    • @adityaray4635
      @adityaray4635 11 หลายเดือนก่อน

      C coding

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      Online C compiler on Google chrome

  • @Bouryal.Y
    @Bouryal.Y 10 หลายเดือนก่อน

    Folks please this is not in mobile

  • @user-rn7td9qz5n
    @user-rn7td9qz5n 2 หลายเดือนก่อน

    Is he coding using a phone

  • @user-oo3nk8rw6e
    @user-oo3nk8rw6e 4 หลายเดือนก่อน +1

    Ohaper ,"&" nahi dala, scanf me

    • @SuryaDeb-eb5zp
      @SuryaDeb-eb5zp 2 หลายเดือนก่อน

      Ha main bhi ohi soch raha tha

  • @saivasukhusu3977
    @saivasukhusu3977 10 หลายเดือนก่อน

    if i don't write & in scanf is it okay or not?

    • @gym-health
      @gym-health 10 หลายเดือนก่อน

      It's a addressing sentence you should write

  • @mediumgamer4108
    @mediumgamer4108 8 หลายเดือนก่อน

    What is the function of \ t

    • @pbmaic3291
      @pbmaic3291 8 หลายเดือนก่อน

      It inserts whitespace and moves the cursor. Sort of like creating another column visually

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 4 หลายเดือนก่อน

      ​@@pbmaic3291yes but no, its just for a tab charactet

  • @UmarudeenK
    @UmarudeenK 4 หลายเดือนก่อน

    Mo np ril

  • @gugan8894
    @gugan8894 10 หลายเดือนก่อน +1

    scanf laa & podala...?

    • @vaisnavijeyaraja6800
      @vaisnavijeyaraja6800 10 หลายเดือนก่อน

      It also my doubt

    • @priyakrish7433
      @priyakrish7433 10 หลายเดือนก่อน +1

      String type variables ku & poda vendam

  • @noddysabharwal541
    @noddysabharwal541 11 หลายเดือนก่อน

    It's wrong 'i' should not be equal to 100 as 'a' will go upto 99 only

    • @alone7463
      @alone7463 7 หลายเดือนก่อน

      he is right

  • @_apolloniusrouche_
    @_apolloniusrouche_ ปีที่แล้ว

    Ampersand a vee podalayam.. aprm epdi bruh a la poi name store aagum.... 🤡 Code error debugged by compiler itself

    • @priyakrish7433
      @priyakrish7433 10 หลายเดือนก่อน +1

      String type ku ampersand use pana vendam

  • @user-te4tx6sh1h
    @user-te4tx6sh1h 10 หลายเดือนก่อน

    Print("name"*100)

    • @easyrobloxcoding
      @easyrobloxcoding 9 หลายเดือนก่อน +1

      you cant multiply a string by a int

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 4 หลายเดือนก่อน

      ​@@easyrobloxcodingyou can in python

  • @lndianthehindu4539
    @lndianthehindu4539 ปีที่แล้ว +2

    App name???

  • @AAYUSHSINGH06
    @AAYUSHSINGH06 4 หลายเดือนก่อน

    Mo

  • @Gunareddy18
    @Gunareddy18 10 หลายเดือนก่อน

    Bro app name

    • @aishhhhhhshebai-_-
      @aishhhhhhshebai-_- 9 หลายเดือนก่อน

      C coding on play Store

    • @codingisfun1
      @codingisfun1 8 หลายเดือนก่อน

      Online C compiler on Google chrome

  • @user-wj3rz4lx9y
    @user-wj3rz4lx9y 4 หลายเดือนก่อน

    The worst bgm 😢

  • @UmarudeenK
    @UmarudeenK 4 หลายเดือนก่อน

    Nth mey mro kdyh mot my dj

  • @AyushTheRuler
    @AyushTheRuler 11 หลายเดือนก่อน +1

    Which app is this?

    • @anil2447
      @anil2447 11 หลายเดือนก่อน

      Programiz a webpage

  • @UmarudeenK
    @UmarudeenK 4 หลายเดือนก่อน

    Afj hi mto wi ei mp

  • @alone7463
    @alone7463 9 หลายเดือนก่อน +2

    #include
    int main()
    {
    int i;
    for (i=0;i

    • @5th_Dimension_Gaming
      @5th_Dimension_Gaming 7 หลายเดือนก่อน

      I was also about to say the exact thing😅

    • @xd9665
      @xd9665 7 หลายเดือนก่อน

      where is user input bro in your code?

    • @alone7463
      @alone7463 7 หลายเดือนก่อน +1

      ​@@xd9665its not necessary here,you know your name ,right ?

  • @science_student__
    @science_student__ หลายเดือนก่อน

    #include
    int main()
    {
    int i;
    for(i=0;i

  • @user-bn2jl4fk3f
    @user-bn2jl4fk3f 10 หลายเดือนก่อน +2

    #include
    #define LEN 256
    int main ()
    {
    FILE * fp;
    int i;
    /* open the file for writing*/
    fp = fopen ("E:\mk.txt","w");
    /* write 10 lines of text into the file stream*/
    for(i = 0; i < 10;i++){
    fprintf (fp, "This is line %d
    ",i + 1);
    }
    /* close the file*/
    fclose (fp);
    return 0;
    }

  • @user-bn2jl4fk3f
    @user-bn2jl4fk3f 10 หลายเดือนก่อน

    #include
    #define MAXCHAR 1000
    int main() {
    FILE *fp;
    char str[MAXCHAR];
    char* filename = "E:\mk.txt";
    fp = fopen(filename, "r");
    if (fp == NULL){
    printf("Could not open file %s",filename);
    return 1;
    }
    while (fgets(str, MAXCHAR, fp) != NULL)
    printf("%s", str);
    fclose(fp);
    return 0;
    }

    • @mnn_memes2.o218
      @mnn_memes2.o218 10 หลายเดือนก่อน

      Is that web site is for free

    • @Username92381
      @Username92381 9 หลายเดือนก่อน

      That's aslo works

  • @Mr.Arjan786
    @Mr.Arjan786 2 หลายเดือนก่อน +2

    #include
    int main ()
    {
    int i;
    char a[100];
    printf("Enter Your Name : ");
    scanf("%s", a);
    for(i= 1;i

  • @itsboat9578
    @itsboat9578 6 หลายเดือนก่อน +1

    It's not working

  • @GinniKhokhar
    @GinniKhokhar ปีที่แล้ว +2

    App name??