Portfolio Courses
Portfolio Courses
  • 852
  • 9 278 963
Append A Character To A Dynamically Allocated String | C Programming Example
How to append a character to a string that is stored in dynamically allocated memory using C. Source code: github.com/portfoliocourses/c-example-code/blob/main/append_char_to_dynamically_allocated_string.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Переглядів: 715

Відео

Print The Negative Numbers In A List | Python Example
Переглядів 2917 годин тому
How to print the negative numbers in a list using Python. Source code: github.com/portfoliocourses/python-example-code/blob/main/print_negative_list_numbers.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Segmentation Faults And Common Causes | C Programming Tutorial
Переглядів 2,6 тис.14 годин тому
Learn about what a segmentation fault is and some of the common causes in C programs. Source code: github.com/portfoliocourses/c-example-code/blob/main/segmentation_fault.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers! Stack Overflow Errors In C Tutorial: ua-cam.com/video/D3scXBzRQUk/v-deo.html
Count Occurrences Of An Item In A List Without Using count() | Python Example
Переглядів 32516 годин тому
How to count the occurrences of an item in a list without using the built-in .count() list method in Python. Source code: github.com/portfoliocourses/python-example-code/blob/main/count_list_item_occurrences.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Legal Ways To Call Void Functions | C Programming Tutorial
Переглядів 3,9 тис.21 годину тому
Learn about the different legal ways to call void functions in C. This video is mostly just for fun as the unusual but still legal ways that we can call void functions are either not useful or generally considered bad practice. Source code: github.com/portfoliocourses/c-example-code/blob/main/legal_ways_to_call_void_functions.c. Check out www.portfoliocourses.com to build a portfolio that will ...
Print The Positive Numbers In A List | Python Example
Переглядів 283День тому
How to print the positive numbers in a list using Python. Source code: github.com/portfoliocourses/python-example-code/blob/main/print_positive_list_numbers.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Void Functions | C Programming Tutorial
Переглядів 1,2 тис.14 днів тому
An explanation of what void functions are in C and how to use them. Source code: github.com/portfoliocourses/c-example-code/blob/main/void_functions.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers! Legal Ways To Call Void Functions Tutorial Video: ua-cam.com/video/fmD636e4ZsI/v-deo.html
Multi-Line Statements | Python Tutorial
Переглядів 36814 днів тому
How to split a statement across multiple lines using Python. Explicit line joining using the line continuation character \ is discussed, as well as implicit line joining using expressions with parenthesis, square brackets and curly braces, and defining strings across multiple lines with \ and docstrings (triple quote strings). Source code: github.com/portfoliocourses/python-example-code/blob/ma...
Print Even Numbers In An Array | C Programming Example
Переглядів 60214 днів тому
How to print the even numbers in an array using C. Source code: github.com/portfoliocourses/c-example-code/blob/main/print_array_even_numbers.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Check If A String Is A Binary String | Python Example
Переглядів 30114 днів тому
How to check if a string is a binary string using Python, i.e. how to check if a string is a binary number made up of only '0' and '1' digits (characters). Source code: github.com/portfoliocourses/python-example-code/blob/main/check_binary_string.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
How To Resize An Array | C Programming Tutorial
Переглядів 1,7 тис.21 день тому
How to resize an array using C. Examples of using realloc() to resize a dynamically allocated array are demonstrated. And also discussed is the workaround idea of using a statically allocated array with a capacity large enough to solve the maximum problem size while also keeping track of the length (portion) of the array that is practically used at runtime. Source code: github.com/portfoliocour...
Convert A Binary Number To A Decimal Number | Python Example
Переглядів 60221 день тому
How to convert a binary number to a decimal number using Python. Source code: github.com/portfoliocourses/python-example-code/blob/main/convert_binary_to_decimal.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Print Positive Numbers In An Array | C Programming Example
Переглядів 58521 день тому
How to print the positive numbers in an array using C. Source code: github.com/portfoliocourses/c-example-code/blob/main/print_array_positive.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Convert A Decimal Number To A Binary Number | Python Example
Переглядів 48221 день тому
How to convert a decimal number to a binary number using Python. More specifically, how to implement an algorithm to convert a non-negative integer to its binary number representation. Source code: github.com/portfoliocourses/python-example-code/blob/main/convert_decimal_to_binary.py. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Count The Occurrences Of A Value In An Array Using Recursion | C Programming Example
Переглядів 68128 днів тому
How to count the occurrences of a value in an array using recursion in C. Source code: github.com/portfoliocourses/c-example-code/blob/main/count_occurrences_recursive.c. Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Loop Through A List Using A While Loop | Python Example
Переглядів 424Місяць тому
Loop Through A List Using A While Loop | Python Example
Linked Lists With C Udemy Course FREE Summer 2024 Promotion
Переглядів 767Місяць тому
Linked Lists With C Udemy Course FREE Summer 2024 Promotion
Sum Array Elements Using Recursion | C Programming Example
Переглядів 795Місяць тому
Sum Array Elements Using Recursion | C Programming Example
Merge Two Sorted Lists | Python Example
Переглядів 475Місяць тому
Merge Two Sorted Lists | Python Example
Check If Two Arrays Are Equal Or Not | C Programming Example
Переглядів 928Місяць тому
Check If Two Arrays Are Equal Or Not | C Programming Example
Delete All Lines In A File That Contain A String | Python Example
Переглядів 379Місяць тому
Delete All Lines In A File That Contain A String | Python Example
Resize A String Stored In Dynamically Allocated Memory | C Programming Tutorial
Переглядів 1,2 тис.Місяць тому
Resize A String Stored In Dynamically Allocated Memory | C Programming Tutorial
Remove The Last Character In A String | C Programming Example
Переглядів 721Місяць тому
Remove The Last Character In A String | C Programming Example
Reverse The Words In A String | Python Example
Переглядів 336Місяць тому
Reverse The Words In A String | Python Example
Print A String In Reverse | C Programming Example
Переглядів 666Місяць тому
Print A String In Reverse | C Programming Example
Count The Words In A File | Python Example
Переглядів 502Місяць тому
Count The Words In A File | Python Example
Convert Seconds To Days, Hours, Minutes and Seconds | C Programming Example
Переглядів 750Місяць тому
Convert Seconds To Days, Hours, Minutes and Seconds | C Programming Example
Count The Words In A String | Python Example
Переглядів 369Місяць тому
Count The Words In A String | Python Example
Remove All Punctuation Marks From A String | C Programming Example
Переглядів 863Місяць тому
Remove All Punctuation Marks From A String | C Programming Example
Remove All Punctuation Marks From A String | Python Example
Переглядів 4172 місяці тому
Remove All Punctuation Marks From A String | Python Example

КОМЕНТАРІ

  • @TheAcebyte
    @TheAcebyte 14 годин тому

    Thank you for the video! The one question I have is, would it not be necessary to typecast the malloc?

    • @PortfolioCourses
      @PortfolioCourses 14 годин тому

      No, it's necessary in C++ but not C: ua-cam.com/video/KTbY4-chkcs/v-deo.html

    • @TheAcebyte
      @TheAcebyte 12 годин тому

      @@PortfolioCourses Wow, that was a quick response, thank you so much!

  • @roelandriemens
    @roelandriemens 17 годин тому

    Thank you for this very helpful lesson again! 🙂

  • @harald4game
    @harald4game 18 годин тому

    void func() {} #pragma startup func #pragma exit func gcc: void __attribute__((constructor)) func(); void __attribute__((destructor)) func(); Not sure if it counts because it depends on the compiler.

  • @LoujinaLoujian
    @LoujinaLoujian 19 годин тому

    WHICH SITE DID YOU USE

  • @bubbacat9940
    @bubbacat9940 21 годину тому

    For most compilers if optimizations are turned on the recursive function won't cause a stack overflow because the optimizations will tell the program to just go to the start of the function instead of calling it

  • @jorgetxjr
    @jorgetxjr 22 години тому

    And all "friendly" languages made this some operations hidded for the programer. Thank you!

  • @Strailty
    @Strailty 22 години тому

    This is really cool i made something with this knowledge im.new in coding so dont mind it being noob level

    • @Strailty
      @Strailty 22 години тому

      Sons_name = input("Whats Your name? ") Character_name = str(Sons_name) character_level = input("Whats your level? ") Character_prestige = int(character_level) if (int(character_level) > 100): print ("Nice Level: ", Character_prestige) else: print("YOU SUCK:", Character_prestige)

  • @bubbacat9940
    @bubbacat9940 23 години тому

    I think if you are writing a wrapper around a void function it might be better practice to do "return func();" because if the definition of func() changes to output a type then you want a compiler error

  • @Nom3x
    @Nom3x День тому

    I recently started learning C programming and I find it fascinating how it lacks so many of the built-in functions commonly found in other languages, likely due to its age. This often requires you to creating your own custom functions, which I find both fun and challenging.

    • @Nom3x
      @Nom3x День тому

      I create my own pow function #include <stdio.h> int Pow(s,f){ int i = 1; int num = s; while (i<f){ i++; num = num*s; printf("%d ",num); } } int main(){ Pow(2,9); }

  • @user-zo8ox8ln6v
    @user-zo8ox8ln6v День тому

    hey are f1 and f2 are the names of these two files..>?

  • @jon-markrivero787
    @jon-markrivero787 День тому

    your telling me by random chance AI throws scissors 4 times in a row…

    • @PortfolioCourses
      @PortfolioCourses День тому

      I know eh! The odds of getting 4 of something in a row are about 3.6% I think, so it's unlikely but not astronomically unlikely. :-)

  • @BrianParsons-or1lv
    @BrianParsons-or1lv День тому

    U crazy son b of a gun

  • @BrianParsons-or1lv
    @BrianParsons-or1lv День тому

    Good stuff 👏

  • @Nicole_Cee
    @Nicole_Cee День тому

    Finally, I understand nested functions. Subscribing!

  • @תומרעטיה-ל7ל
    @תומרעטיה-ל7ל 2 дні тому

    Is there a video where you explain only about VECTOR data structure in detail?

  • @viczii4464
    @viczii4464 2 дні тому

    From errno manual: On some ancient systems, <errno.h> was not present or did not declare errno, so that it was necessary to declare errno manually (i.e., extern int errno). Do not do this. It long ago ceased to be necessary, and it will cause problems with modern versions of the C library.

  • @Rai_Te
    @Rai_Te 2 дні тому

    For the last discussed case, the term 'use after free' is also common.

  • @alphonsereitz
    @alphonsereitz 2 дні тому

    I'll be watching this multiple times.. I'm having such trouble with an spi function taking a const uint16_t *in.. Ptrs themselves aren't bad, but arrays for some reason still woosh over my head.

  • @vicsteiner
    @vicsteiner 3 дні тому

    I'm using gcc in Ubuntu and I can strcpy an char source[100] int a char coda[8] and do not get even a warning (I am using -Wall and -g in the compilation)! I understand it is likely written into memory it should not but.

  • @rezah336
    @rezah336 3 дні тому

    that was pretty useless, but fun

  • @tupjiu963
    @tupjiu963 3 дні тому

    This video is class!

  • @Rai_Te
    @Rai_Te 3 дні тому

    For the sake of completeness ... you can have a variable of type 'pointer to function returning void', assign your void function to this pointer (which basically copies the entry address of the function into the pointer) and finally call the function via the pointer.

    • @PortfolioCourses
      @PortfolioCourses День тому

      That’s true! :-) Anyone interested in learning about this may find this video on function pointers interesting: ua-cam.com/video/f_uWOWViYc0/v-deo.html

  • @ihfazhakimsulvi6494
    @ihfazhakimsulvi6494 3 дні тому

    what if we like put a condition that we will treat those as words only starting with alphabets?

  • @kamurashev
    @kamurashev 3 дні тому

    print([i for i in number_list if i < 0])

  • @GCKteamKrispy
    @GCKteamKrispy 3 дні тому

    Not bragging, but genuinly curious: I've never had this mistake to this day, but is it something that happens a lot?

  • @semihaturkoglu
    @semihaturkoglu 3 дні тому

    don't be bored telling the same thing: you're the best instructor

  • @semihaturkoglu
    @semihaturkoglu 3 дні тому

    very good and clean explanation.. like always

  • @kingeric1992
    @kingeric1992 4 дні тому

    return function1(), 0;

  • @achv4668
    @achv4668 4 дні тому

    May i ask , what editor are you using ?

  • @freelance-writer
    @freelance-writer 4 дні тому

    Great explanation. Although I'd really love to see a video on recursion that ISN'T about factorials. 🙃

    • @PortfolioCourses
      @PortfolioCourses 4 дні тому

      If you search “recursion” on this channel page you’ll find a bunch of other recursion examples. :-)

  • @vitalegvitalegov
    @vitalegvitalegov 4 дні тому

    Wow someone is using vanilla C in 2024 😮

  • @DHARMA252
    @DHARMA252 4 дні тому

    Why not sizeof(array)?

    • @PortfolioCourses
      @PortfolioCourses 4 дні тому

      If we know the length, we don’t need to use sizeof(). We can’t always use sizeof to determine the length either, for example when passing the array to a function.

    • @DHARMA252
      @DHARMA252 4 дні тому

      @@PortfolioCourses so we can't use sizeof inside of a function? Okay I didn't know that.

  • @Little-bird-told-me
    @Little-bird-told-me 4 дні тому

    Mixing problem solving videos and complex concepts is very good idea. More please

  • @smartwashington1455
    @smartwashington1455 4 дні тому

    ❤ thank you so much

  • @muhammedsabith2919
    @muhammedsabith2919 5 днів тому

    many thanks, subscribed

  • @mumbaiverve2307
    @mumbaiverve2307 5 днів тому

    Super video !! BTW there is no link to the video on stack overflow ?

    • @PortfolioCourses
      @PortfolioCourses 5 днів тому

      Thanks for letting me know that was missing, the video has now been added to the description, and it's available here: ua-cam.com/video/D3scXBzRQUk/v-deo.html

  • @fifaham
    @fifaham 5 днів тому

    Watching those great videos more than once will make you a better programmer.

  • @fifaham
    @fifaham 5 днів тому

    Very good video, I have watched this video several times to recall all possible causes of Segmentation Faults. Thank you Kevin.

  • @angelffg
    @angelffg 5 днів тому

    Great!

  • @vicsteiner
    @vicsteiner 5 днів тому

    That video help me to make a lot of questions. So the ascii printable can be represent by int but also unsigned int. I was curious and what about extended ascii, UTF, UNICODE all this encodings. And then once a bytes pattern is matched to a symbol where the actual graphical representation for the symbol lives? How they are matched. The exercise could have gone a bit further and talked about wprintf and locale.

  • @pixelgamesSARLS
    @pixelgamesSARLS 5 днів тому

    Love your C programming videos! Thank you!

    • @PortfolioCourses
      @PortfolioCourses 5 днів тому

      You're welcome, I'm glad you like the videos! :-)

  • @Awwe12675
    @Awwe12675 5 днів тому

    Can you please explain thread all functions in library threads

  • @soufianeidrissi-bm9tc
    @soufianeidrissi-bm9tc 6 днів тому

    can you give us the algorithm course from scratch to the hardest as (queen, backtracking ... ) by language C

  • @theranker3101
    @theranker3101 6 днів тому

    Can you make a video on working with GUI in C?

  • @abhishankpaul
    @abhishankpaul 6 днів тому

    Didn't know about the bracket operation

  • @ElPikacupacabra
    @ElPikacupacabra 6 днів тому

    Excellent!

  • @abhishankpaul
    @abhishankpaul 6 днів тому

    Your C tutorials + book by Ken Thomson has helped me a lot

    • @PortfolioCourses
      @PortfolioCourses 6 днів тому

      That’s great, I’m glad the tutorials are helping you! :-)