Sunil Dhimal
Sunil Dhimal
  • 139
  • 584 946
Character pointer and function | Complete C programming course | Lecture #15.8
Learn about string constant, string, character pointer and how to manipulate string using a function (both array and pointer notation).
⏱️Timestamps►
0:00 Introduction
0:48 String constant and pointer
5:41 Program to demonstrate String constant and pointer
8:47 String vs String Pointer
12:09 Program to demonstrate String vs String Pointer
17:05 String Copy Logic
20:33 Function to perform string copy (array notation)
24:32 Function to perform string copy (pointer notation)
26:35 Improvement to the code
📌Links to related lectures:
String Copy Function - czcams.com/video/Uzd_TDLFkwA/video.html
This lecture belongs to ✅ Section 15 : Pointers
🌳If you like my work and wish to contribute financially, you may donate on the following UPI ID ►
💧My UPI ID: sunildhimal@uboi
--------------------------------------------------------------------------------
📚 C LANGUAGE TUTORIAL FOR BEGINEER ►
☑️ Course Title: Layman's Introduction to Programming using C
☑️ Course Playlist: czcams.com/play/PLftH_KTPtiBL5nOjdTcJouILm1EmCjJfZ.html
☑️ About the course: Layman's Introduction to Programming using C includes lectures for learning programming concepts using the C language. This course is for absolute beginners and no prior knowledge of programming is required. The topics are introduced in a friendly, easy, and relatable way so that it becomes easy to understand the topic well. The flow of the lecture is carefully planned and the topic or concept is introduced at the right moment so that it becomes relatable for the learner and he/she experiences easy navigation between topics/concepts/chapters. The learner is expected to gain mastery in C programming after completing this course. Unlike many similar courses on C programming, this course does not directly start with programming, but rather it starts by covering some essential fundamentals of computers that are required for learning programming.
📑 Following are the sections/chapters available in this course►
✅ Section 1 : Introduction
✅ Section 2 : Essential Fundamentals
✅ Section 3 : Getting Started
✅ Section 4 : Elementary Programming
✅ Section 5 : Data Types and Constants
✅ Section 6 : Operators and Expression
✅ Section 7 : Decision Making
✅ Section 8 : Looping
✅ Section 9 : Nested Loop
✅ Section 10 : Functions
✅ Section 11 : Program Structure
✅ Section 12 : Arrays
✅ Section 13 : 2D Arrays
✅ Section 14 : Strings
✅ Section 15 : Pointers
✅ Section 16: Structure and Union
✅ Section 17: Memory Management
✅ Section 18: More about Pointers
✅ Section 19: File Handling
✅ Section 20: Some useful features in C
⚙️The features of this course are►
✔️ Experienced teacher (7+ years experience)
✔️ Complete tutorials on C programming
✔️ Learn programming not just the C language
✔️ Hands-on(Coding) demonstration
✔️ Board work
✔️ Interactive content
✔️ Relatable examples/applications
✔️ Focus on computational thinking skills
✔️ Quizzes
✔️ Practice problems
✔️ Puzzle questions
✔️ Fun and easy explanation
--------------------------------------------------------------------------------
🖥️About the channel ►
We are in the mission of providing easy, intuitive, fun and in-depth lectures on programming, data structures, algorithms & problem solving skills.
📚 OTHER PLAYLISTS ►
📒 Essential Computer Fundamentals: czcams.com/play/PLftH_KTPtiBJ-WQgIRq87-0xbbiNycJK3.html
📘 Design and Analysis of Algorithms : czcams.com/play/PLftH_KTPtiBKPAbFwv0srGgzxVZFm65JX.html
📕 Data Structures : czcams.com/play/PLftH_KTPtiBLeg0J7MEMhP6q98iLmEHgI.html
--------------------------------------------------------------------------------
👋 CONNECT WITH ME ►
📌 FREE Quiz/Coding Exercise/Puzzle Question : courses.sunildhimal.com
📌 Telegram : t.me/SunilDhimal
📌 Facebook : profile.php?id=100076076044774
📌 Instagram : sdhimal
📌 Twitter : sunildhimal
📌 LinkedIn : www.linkedin.com/in/sunil-dhimal-a006aa1b/
--------------------------------------------------------------------------------
🌳If you like my work and wish to contribute financially, you may donate on the following UPI ID ►
💧My UPI ID: sunildhimal@uboi
--------------------------------------------------------------------------------
🏷️ TAGS ►
#c #cprogramming #learncoding #learnprogramming
#programmingforbeginners
zhlédnutí: 248

Video

Pointer as a function argument | Complete C programming course | Lecture #15.7
zhlédnutí 200Před rokem
Learn how to pass pointer as an argument to a function. Call by value and call by reference is covered taking example of swapping two numbers. ⏱️Timestamps► 0:00 Introduction 0:25 Agenda of this lecture 1:03 Swapping as an example 3:12 Swapping demonstration 4:59 Logic for swapping variables 7:42 Swapping variables using a function 9:42 Swapping program demonstration - call by value 14:02 The i...
Pointer and Array | Complete C programming course | Lecture #15.6
zhlédnutí 183Před rokem
Learn about the relationship between array and pointer and how to access array using pointer notations. ⏱️Timestamps► 0:00 Introduction 0:24 Table of Contents 0:54 Scalar and Vector quantities 8:46 1-dimensional array and Pointers 17:42 Array subscript and Pointer notation 26:19 Example 31:56 Program Demonstration This lecture belongs to ✅ Section 15 : Pointers 🌳If you like my work and wish to ...
Know About All Valid Pointer Arithmetic Operations | Complete C programming course | Lecture #15.5
zhlédnutí 423Před rokem
Learn about all valid arithmetic operations for a pointer variable. Understand how does pointer integer, pointer-integer and pointer-pointer work! ⏱️Timestamps► This lecture belongs to ✅ Section 15 : Pointers 🌳If you like my work and wish to contribute financially, you may donate on the following UPI ID ► 💧My UPI ID: sunildhimal@uboi 📚 C LANGUAGE TUTORIAL FOR BEGINEER ► ☑️ Course Title: Layman'...
15.4. Some useful concepts on Pointers in C | Complete C programming course | Sunil Dhimal
zhlédnutí 181Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Some important concepts on Pointers in C: 0:00 Introduction 0:31 Address of operator (&) in C 3:00 Indirection / Dereferencing operator (*) in C 8:59 Pointer to a pointer 16:27 Memory allocation for your program 17:53 Uninitialized Pointer 20:28 Segmentation Fault 21:34 NULL Pointer 24:28 Concl...
15.3. Application of pointer in C - call by reference | Complete C programming course | Sunil Dhimal
zhlédnutí 181Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Application of Pointers in C: 0:00 Introduction 0:19 Program to demonstrate Call by value 3:42 Issues with call by value 6:22 Program to demonstrate Call by reference 10:15 Conclusion C LANGUAGE TUTORIAL FOR BEGINEER Course Title: Layman's Introduction to Programming using C Section 15: Pointer...
15.2. C Program to demonstrate Pointers | Complete C programming course | Sunil Dhimal
zhlédnutí 130Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Write a program to implement Pointers in C: 0:00 Introduction 0:10 Defining a variable 0:37 Display the content of a variable 1:17 Display the address of a variable 2:17 Create a pointer variable 3:01 Store the address in a pointer variable 3:53 Display the content of a pointer variable 4:27 Di...
15.1. Introduction to Pointers in C | Complete C programming course | Sunil Dhimal
zhlédnutí 178Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal What is a pointer in C language ? 0:00 Introduction 0:29 What is a pointer ? 1:50 Real world example of computer's memory 3:17 Computer's memory Vs. Plots of a land 6:38 How is variable stored in the memory ? 10:44 Pointer variable 15:35 Displaying content and address of pointer variable 19:11 ...
14.7. String Comparison Function | Complete C programming course | Sunil Dhimal
zhlédnutí 162Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal User defined function to perform comparison of two strings Program to perform string comparison without using strcmp() function C program to perform string comparison 0:00 Introduction 0:06 Revision of strcmp() function 0:56 Logic for performing string comparison 4:52 Algorithm for comparison o...
14.6. String Concatenation Function | Complete C programming course | Sunil Dhimal
zhlédnutí 102Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Program to perform string concatenation: C LANGUAGE TUTORIAL FOR BEGINEER Course Title: Layman's Introduction to Programming using C Section 14: Strings Course Playlist: czcams.com/play/PLftH_KTPtiBL5nOjdTcJouILm1EmCjJfZ.html #c #cprogramming #learncoding #learnprogramming #programmingforbeginners
14.5. String Copy Function | Complete C programming course | Sunil Dhimal
zhlédnutí 79Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Program to copy source string to destination string 0:00 Introduction 0:21 Logic to perform string copy 3:16 Program to implement string copy function 6:46 Conclusion C LANGUAGE TUTORIAL FOR BEGINEER Course Title: Layman's Introduction to Programming using C Section 14: Strings Course Playlist:...
14.4. String Length Function | Complete C programming course | Sunil Dhimal
zhlédnutí 69Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal Program to find the length of the string / User define function to find string length in C: 0:00 Introduction 0:19 Logic to calculate length of the string 3:28 Program to implement string length function 6:11 Conclusion C LANGUAGE TUTORIAL FOR BEGINEER Course Title: Layman's Introduction to Pro...
14.3. String function and string.h header file| Complete C programming course | Sunil Dhimal
zhlédnutí 465Před rokem
FREE Quiz/Coding Exercise/Puzzle Question: courses.sunildhimal.com Join on telegram: t.me/SunilDhimal 0:00 Introduction 0:19 String length function (intro) 0:39 String copy function (intro) 1:14 String concatenation function (intro) 2:00 String comparison function (intro) 2:45 Program to demonstrate strlen() function 3:56 Program to demonstrate strcpy() function 5:51 Program to demonstrate strc...
14.2. String input/output function in C| Complete C programming course | Sunil Dhimal
zhlédnutí 297Před rokem
14.2. String input/output function in C| Complete C programming course | Sunil Dhimal
14.1 Introduction to string | Complete C programming course | Sunil Dhimal
zhlédnutí 106Před rokem
14.1 Introduction to string | Complete C programming course | Sunil Dhimal
13.4 Matrix Multiplication - Logic & Program | Complete C programming course | Sunil Dhimal
zhlédnutí 305Před rokem
13.4 Matrix Multiplication - Logic & Program | Complete C programming course | Sunil Dhimal
13.3 Program to transpose a given matrix in C | Complete C programming course | Sunil Dhimal
zhlédnutí 156Před rokem
13.3 Program to transpose a given matrix in C | Complete C programming course | Sunil Dhimal
13.2 Program to check for lower triangular matrix | Complete C programming course | Sunil Dhimal
zhlédnutí 829Před rokem
13.2 Program to check for lower triangular matrix | Complete C programming course | Sunil Dhimal
13.1 Introduction to 2D array in C | Complete C programming course | Sunil Dhimal
zhlédnutí 96Před rokem
13.1 Introduction to 2D array in C | Complete C programming course | Sunil Dhimal
12.6 Bubble sort algorithm in an array | Complete C programming course | Sunil Dhimal
zhlédnutí 139Před rokem
12.6 Bubble sort algorithm in an array | Complete C programming course | Sunil Dhimal
12.5 Binary search algorithm in an array | Complete C programming course | Sunil Dhimal
zhlédnutí 716Před rokem
12.5 Binary search algorithm in an array | Complete C programming course | Sunil Dhimal
12.4 Linear search algorithm in an array | Complete C programming course | Sunil Dhimal
zhlédnutí 117Před rokem
12.4 Linear search algorithm in an array | Complete C programming course | Sunil Dhimal
12.3 How to pass array to a function ? | Complete C programming course | Sunil Dhimal
zhlédnutí 71Před rokem
12.3 How to pass array to a function ? | Complete C programming course | Sunil Dhimal
12.2 Largest Element in an Array | Complete C programming course | Sunil Dhimal
zhlédnutí 338Před rokem
12.2 Largest Element in an Array | Complete C programming course | Sunil Dhimal
12.1 Introduction to Array in C: A Comprehensive Guide |Complete C programming course | Sunil Dhimal
zhlédnutí 140Před rokem
12.1 Introduction to Array in C: A Comprehensive Guide |Complete C programming course | Sunil Dhimal
11.5. Register variable in C | Complete C programming course | Sunil Dhimal
zhlédnutí 123Před rokem
11.5. Register variable in C | Complete C programming course | Sunil Dhimal
11.4. Static variable and static function in C | Complete C programming course | Sunil Dhimal
zhlédnutí 137Před rokem
11.4. Static variable and static function in C | Complete C programming course | Sunil Dhimal
11.3. Automatic variables and extern keyword in C | Complete C programming course | Sunil Dhimal
zhlédnutí 185Před rokem
11.3. Automatic variables and extern keyword in C | Complete C programming course | Sunil Dhimal
11.2. How to create your own header file in C | Complete C programming course | Sunil Dhimal
zhlédnutí 664Před rokem
11.2. How to create your own header file in C | Complete C programming course | Sunil Dhimal
11.1. Local and global variables in C | Complete C programming course | Sunil Dhimal
zhlédnutí 77Před rokem
11.1. Local and global variables in C | Complete C programming course | Sunil Dhimal

Komentáře

  • @keerthichembayil2760
    @keerthichembayil2760 Před 2 měsíci

    good explanation of recursion

  • @raghavendrakumarsingh4646
    @raghavendrakumarsingh4646 Před 2 měsíci

    Nice explanation

  • @karthik_kk708
    @karthik_kk708 Před 4 měsíci

    *_Thank You So Much Sir_* 😍 *_Love From Kerala_* *_I had some difficulty figuring out the logic of the nested loop. This class helped me._* ☺

  • @minyaforksee9448
    @minyaforksee9448 Před 4 měsíci

    5 years later and this is still valuable. It covers the essential parts, straight to the point and very clear. This is why I always look at underrated or much lengthy videos first for explanations than the ones with click-baits and super simplified explanations to cater short-term attention span of people.

  • @ARR0W
    @ARR0W Před 5 měsíci

    5:02 1/4 > 1/2

  • @tarun8706
    @tarun8706 Před 5 měsíci

    Thanks for your video ...I really need it 💛

  • @MrPatrickbuit
    @MrPatrickbuit Před 6 měsíci

    You are an excellent teacher

  • @user-wr3mj8um6e
    @user-wr3mj8um6e Před 9 měsíci

    Thanksfor sharing .very usful!

  • @kareemulla8023
    @kareemulla8023 Před 9 měsíci

    great lecture sir.. thank you

  • @TheBoDuddly
    @TheBoDuddly Před 9 měsíci

    Great video, thank you. Best explanantion I have found!!

  • @user-wi6wt3fg5l
    @user-wi6wt3fg5l Před 9 měsíci

    Great Session!

  • @porfavorneccesitoelbano
    @porfavorneccesitoelbano Před 9 měsíci

    Life saver

  • @suchanpradhan3662
    @suchanpradhan3662 Před 10 měsíci

    nice...work ....thank u sir

  • @physicsaddict5263
    @physicsaddict5263 Před 11 měsíci

    Great video sir... Sir i am not able to get access to your quiz,notes...its showing error when I am clicking on link

  • @beerajsaikia
    @beerajsaikia Před 11 měsíci

    sir ji you are god

  • @amanRG
    @amanRG Před 11 měsíci

    Sir i didn't get it

  • @asertutorial8443
    @asertutorial8443 Před 11 měsíci

    Not only real... but also impressive video with crystal clear explaination. Thank You!

  • @payalkhanaal
    @payalkhanaal Před rokem

    Thank you sir

  • @XeroGamingYT
    @XeroGamingYT Před rokem

    Well explained, concept is quite clear.

  • @yoihenbath
    @yoihenbath Před rokem

    Sir thank you for your visit to smit I was introduced to your channel Now im learning C programming from here

  • @birajSMIT
    @birajSMIT Před rokem

    Nice Lecture👌

  • @surajghimirey5194
    @surajghimirey5194 Před rokem

    ❤️Always great sir

  • @reetasharma7692
    @reetasharma7692 Před rokem

    Very nice 👍 lecture 😊

  • @reetasharma7692
    @reetasharma7692 Před rokem

    Very nice 👍

  • @reetasharma7692
    @reetasharma7692 Před rokem

    Very nice 👍

  • @sammsiska
    @sammsiska Před rokem

    Well explained🎉🎉

  • @samip101
    @samip101 Před rokem

    I feel very lucky to discover this content from you daju

  • @samip101
    @samip101 Před rokem

    Namaste daju 🙏🇳🇵

  • @irfandirvi2
    @irfandirvi2 Před rokem

    Thank you

  • @arise544
    @arise544 Před rokem

    I came as a intern at SMIT and my assigned teacher suggested me your channel, really glad i found this channel its easy to follow through the tutorials and u explain everything very thoroughly even a non tech person can understand and learn, appreciate your hardwork sir...

  • @redspah2892
    @redspah2892 Před rokem

    Thank you sir for teaching me how to use string in C.

  • @superpekka772
    @superpekka772 Před rokem

    beautiful sir this was a huge video in terms of knowledge about big o notation i learned this in just one video and tommorow is my exam 2nd semester software engineering

  • @emoney752
    @emoney752 Před rokem

    finally somebody who explains what Big O notation is before jumping to exercise. Thank you

  • @birajSMIT
    @birajSMIT Před rokem

    Concepts well illustrated with examples👍

  • @mOjEbbb
    @mOjEbbb Před rokem

    THX DOCTOR

  • @mohitkaushik21
    @mohitkaushik21 Před rokem

    Thanks sir 😊

  • @invincibledrank460
    @invincibledrank460 Před rokem

    amazing how relevant this video is

  • @zignd
    @zignd Před rokem

    Your explaination was great, thank you very much sir!

  • @cassianperera2426
    @cassianperera2426 Před rokem

    Dear Sir, your explanation is very clear. Thank you

  • @MotivationMatrix_Ravin

    hello bro i think 3n+2=O(n^2) have ans : c=4 and n=1; To prove that 3n+2=O(n^2), we need to show that there exists a positive constant c and a non-negative integer n0 such that for all n ≥ n0, the following inequality holds: |3n + 2| ≤ c * n^2 We can start by simplifying the left side of the inequality: |3n + 2| = 3n + 2, since 3n + 2 is non-negative for all n. Next, we can choose c = 4 and n0 = 1. Then, for all n ≥ 1, we have: 3n + 2 ≤ 4n^2 Dividing both sides by n^2, we get: 3/n + 2/n^2 ≤ 4 Since the left side of the inequality is decreasing as n increases, we only need to verify the inequality for n = 1: 3/1 + 2/1^2 = 5 ≤ 4 This is a contradiction, so the inequality cannot hold for any value of n. Therefore, we can conclude that 3n+2 is not O(n^2), and the original statement is false.

  • @amerikantypo8775
    @amerikantypo8775 Před rokem

    Doesn't g(n) become 5n and not 4n? Someone please explain

  • @t.manivel7397
    @t.manivel7397 Před rokem

    Nice explanation sir...

  • @tech-sikkim
    @tech-sikkim Před rokem

    Finished 🥳

  • @sakshamsuman3527
    @sakshamsuman3527 Před rokem

    Thank you sir

  • @rajghimirey01
    @rajghimirey01 Před rokem

    Valuable 💯👌today, New Thing I Know About Modulo operator🥳

  • @rajghimirey01
    @rajghimirey01 Před rokem

    .deb vs flatpak which one is better sir?

  • @kumargagare6154
    @kumargagare6154 Před rokem

    Hey, thanks for this video! Can you guide me the case below For(i:0 to n) { For(j:0 to m) { Print(k) } } Thanks in advance!!!

  • @fernandogmail1
    @fernandogmail1 Před rokem

    Question: What if the function foo itself contained a data structure, say a Linked List that uses O(n) space? Will that mean that the overall space complexity will be O(n^2)? Thank you very much for your video!

  • @placebomessiah
    @placebomessiah Před rokem

    This is an awesome explanation, Sunil. Thank you from Canada

  • @rajghimirey01
    @rajghimirey01 Před rokem

    Sir suggest Best free Video Editing Software for beginners?