C_73 Pointers in C- part 3 | Pointer Assignment

Jenny's Lectures CS IT
11 Aug 202112:35

Summary

TLDRIn this video, the concept of pointers in C programming is discussed, with a focus on pointer assignment. The video explains how to declare and initialize pointers, use the address-of and dereferencing operators, and assign values from one pointer to another. It includes practical examples and a demonstration on a laptop. The importance of properly initializing pointers before using them is emphasized, as well as being careful with pointer types and memory locations to avoid errors. A sample program is shown to illustrate these concepts in action.

Takeaways

  • 😀 Discusses pointer basics in C, including declaration, initialization, and usage of address-of and dereferencing operators.
  • 🔍 Explains pointer assignment and how to assign the value of one pointer to another with examples.
  • 📌 Demonstrates storing addresses of variables in pointers and how pointers point to specific memory locations.
  • 🛠 Emphasizes the importance of understanding how the asterisk (*) symbol functions differently in declaration and dereferencing contexts.
  • 💡 Shows how to assign one pointer's value to another, making both pointers point to the same memory address.
  • ❗ Warns about accessing uninitialized pointers, which can lead to errors or undefined behavior in the program.
  • 🚫 Highlights that using uninitialized pointers can cause the program to crash or behave unpredictably.
  • 🔧 Demonstrates initializing pointers before using them to avoid accessing unknown memory locations.
  • 🖨 Provides examples of printing values using pointers and the correct format specifiers in C.
  • 📋 Illustrates the difference between compatible and incompatible pointer types and the importance of matching data types in pointer assignments.

Q & A

  • What is a pointer in C?

    -A pointer in C is a variable that stores the memory address of another variable. It allows for direct access and manipulation of memory locations.

  • How do you declare and initialize a pointer in C?

    -To declare a pointer in C, you use the asterisk (*) symbol before the pointer's name. To initialize it, you assign it the address of a variable using the address-of operator (&). For example: int *p = &a;

  • What are the address-of operator and indirection operator in the context of pointers?

    -The address-of operator (&) is used to get the memory address of a variable, while the indirection operator (*) is used to access the value stored at the address a pointer is pointing to.

  • How do you assign the value of one pointer to another pointer?

    -You can assign the value of one pointer to another pointer using the assignment operator (=). For example: q = p; This makes both pointers point to the same memory location.

  • What happens if you try to use an uninitialized pointer?

    -Using an uninitialized pointer can lead to undefined behavior, as it may point to an unknown or illegal memory location. This can cause errors or program crashes.

  • Why is it important to initialize pointers before using them?

    -Initializing pointers before using them ensures they point to a valid memory location, preventing undefined behavior and potential errors or crashes in the program.

  • How can you print the value of a variable using a pointer?

    -You can print the value of a variable using a pointer by dereferencing the pointer with the indirection operator (*). For example: printf("Value of a: %d", *p);

  • What is the difference between q = p and *q = *p?

    -The statement q = p makes q point to the same memory location as p, while the statement *q = *p assigns the value pointed to by p to the memory location pointed to by q.

  • What will happen if you print a dereferenced uninitialized pointer?

    -Printing a dereferenced uninitialized pointer will lead to accessing an unknown memory location, which can result in undefined behavior, errors, or program crashes.

  • What is the output when you assign a float value to an integer pointer and try to print it?

    -Assigning a float value to an integer pointer and trying to print it using %d will likely result in incorrect or unexpected output due to incompatible data types. The correct way would involve matching the data types properly.

Outlines

00:00

📘 Understanding Pointers in C

In this segment, the speaker introduces the concept of pointers in C programming, explaining their declaration, initialization, and usage. Key topics include address-of and dereferencing operators, with examples to illustrate how to assign values to pointers. The explanation includes practical demonstrations and coding examples to solidify the understanding of pointers and their applications.

05:01

🔍 Handling Uninitialized Pointers

This part discusses the issues related to uninitialized pointers and accessing illegal memory locations. The speaker highlights the importance of initializing pointers before use to avoid runtime errors. An example demonstrates the consequences of using uninitialized pointers, leading to program crashes or undefined behavior. The speaker emphasizes careful management of pointer assignments to ensure program stability.

10:05

🔄 Pointer Assignment and Memory Access

The focus here is on pointer assignment and accessing values through pointers. The speaker differentiates between direct and indirect access methods, showing how pointer assignments work in practical scenarios. An example illustrates the assignment of one pointer's value to another and the impact on memory access. The segment also covers potential errors when dealing with incompatible pointer types and the importance of matching data types during pointer assignments.

Mindmap

Keywords

💡Pointer

In programming, a pointer is a variable that stores the memory address of another variable. Pointers are essential in C programming for dynamic memory allocation and efficient array and string manipulation. The video discusses the basics of pointer declaration, initialization, and usage, emphasizing their role in accessing and modifying memory locations.

💡Address Operator

The address operator (&) in C programming is used to obtain the memory address of a variable. This operator is crucial when working with pointers, as it allows a pointer to store the address of a variable. The video explains how to use the address operator to assign the address of variables to pointers.

💡Dereferencing Operator

The dereferencing operator (*) is used to access the value at the memory address stored in a pointer. It is also known as the indirection operator. The video shows how dereferencing a pointer allows you to read or modify the value of the variable it points to, with examples demonstrating its practical use.

💡Pointer Assignment

Pointer assignment involves setting one pointer to point to the same memory address as another pointer. This concept is illustrated in the video with examples, showing how assigning the value of one pointer to another can make both pointers refer to the same variable, allowing for shared access to the data.

💡Initialization

Initialization refers to the process of assigning an initial value to a pointer when it is declared. The video stresses the importance of initializing pointers before use to avoid undefined behavior, as uninitialized pointers can lead to accessing random or illegal memory locations.

💡Memory Location

A memory location is a specific address in the computer's memory where data is stored. Pointers are used to access these memory locations. The video provides examples of how pointers can point to different memory locations, such as those of variables 'a' and 'b', and how these addresses are used in pointer operations.

💡Indirection

Indirection refers to accessing a value through a pointer, rather than directly using the variable's name. The video explains indirection with the dereferencing operator, demonstrating how to access and modify values indirectly through pointers.

💡Data Type

A data type defines the type of data a variable can hold, such as int, float, or char. Pointers are strongly typed, meaning a pointer to an int can only hold the address of an int variable. The video highlights the importance of matching pointer types with the variables they point to, illustrating potential issues with incompatible types.

💡Error Handling

Error handling in the context of pointers involves checking for and managing incorrect pointer usage, such as dereferencing uninitialized or null pointers. The video shows examples of common pointer-related errors and how to avoid them by proper initialization and careful pointer operations.

💡Compatibility

Compatibility refers to ensuring that pointers are used with compatible data types. The video discusses how assigning a float pointer to an int pointer can cause issues, highlighting the importance of type compatibility in pointer assignments and operations to avoid runtime errors and unexpected behavior.

Highlights

Introduction to pointers in C, including basics such as declaration, initialization, and usage of operators like address-of and dereferencing.

Explanation of how to assign the value of one pointer to another pointer using a simple program.

Detailed discussion on the importance of initializing pointers before using them.

Illustration of pointer declaration syntax and how it informs the compiler about the pointer type.

Example demonstrating how assigning the address of one variable to a pointer works in memory.

Clarification on the difference between using the dereference operator in pointer declaration versus accessing the value.

Practical example showing how to print the value of a variable using different pointers.

Explanation of how assigning a pointer to another pointer makes both point to the same memory address.

Demonstration of potential errors when trying to access an uninitialized pointer.

Discussion on accessing and assigning values through pointers and the importance of type compatibility.

Illustration of how changing the value at a pointer's address affects all pointers pointing to that address.

Example showing the need to be careful with pointer types to avoid incompatible pointer type errors.

Highlighting the precision handling of floating-point numbers when printed through pointers.

Summary of best practices for working with pointers in C, including initialization and careful type management.

Final practical demonstration on a laptop to reinforce the discussed concepts with actual code execution.

Transcripts

play00:00

सो इन द सीरीज ऑफ लर्निंग प्रोग्रामिंग इन

play00:02

सी वी आर डिस्कसिंग पॉइंटर इन सी वी हैव

play00:03

डिस्कस सम बेसिक्स अबाउट पॉइंट्स लाइक

play00:06

व्हाट इज पॉइंटर डिक्लेरेशन इनिला जशन ऑफ

play00:08

पॉइंटर एंड वी हैव आल्सो डिस्कस लाइक हाउ

play00:11

टू यूज दोस ऑपरेटर्स विद पॉइंट्स लाइक

play00:14

एड्रेस ऑफ ऑपरेटर एंड इनडायरेक्शन ऑपरेटर

play00:17

और यू कैन से डी रेफरेंसिंग ऑपरेटर राइट

play00:20

विद प्रॉपर एग्जांपल और यू कैन से अ

play00:21

प्रोग्राम सो इन दिस वीडियो आई विल सी आई

play00:25

विल टॉक अबाउट वन मोर नो थिंग दैट इज

play00:28

पॉइंटर असाइनमेंट मींस यू कैन से हाउ टू

play00:31

असाइन वैल्यू ऑफ अ पॉइंटर टू अनदर पॉइंटर

play00:35

राइट वी विल सी दैट थिंग विद एग्जांपल और

play00:37

यू कैन से विद अ सिंपल प्रोग्राम हियर

play00:39

राइट एंड आई विल शो यू प्रैक्टिकली आल्सो

play00:41

ऑन माय लैपटॉप सो नाउ लेट अस डिस्कस हाउ

play00:43

टू असाइन अ पॉइंटर वैल्यू टू अनदर पॉइंटर

play00:46

सी हेयर आई एम टेकिंग सपोज अ टू वेरिएबल

play00:49

एंड वैल्यूज सेम a ब a = 10 b = 11 एंड आई

play00:54

एम टेकिंग हियर टू पॉइंट्स p

play00:56

एंड q टू पॉइंट्स आईई एम टेकिंग राइट सो

play01:00

इट मींस वी हैव ए इन मेमोरी वी हैव बी

play01:05

सपोज एड्रेस इज 1000 एड्रेस इज 1046 मे बी

play01:08

ए इज हैविंग वैल्यू दिस बी इज हैविंग 11

play01:11

एंड वन मोर थिंग वी हैव पॉइंटर p वी हैव

play01:15

वन पॉइंटर q एंड सपोज एड्रेस ऑफ दिस इज मे

play01:17

बी 2000 और मे बी

play01:19

3000 इन प एंड q वी आर नॉट हैविंग एनीथिंग

play01:22

मींस प एंड क आर नॉट नो पॉइंट टू एनीथिंग

play01:25

वी हैवेंट इनिला इज्ड दीज पॉइंट्स राइट दज

play01:28

आर पॉइंट टू अननोन लोकेशंस राइट नाउ

play01:32

सी हेयर सी दिस दिस मे बी यू आर इन द

play01:36

प्रीवियस वीडि आई हैव टोल्ड यू दिस एस्टिक

play01:38

इज वट इनडायरेक्शन ऑपरेटर मींस इट विल गिव

play01:40

वैल्यू एट दिस एड्रेस बट हेयर इन दिस लाइन

play01:44

व्हेन यू राइट डेटा टाइप दिस एट्रिक एंड p

play01:48

इट मींस हेयर दिस विल टेल द कंपाइलर दैट

play01:52

दिस इज पॉइंटर हेयर इट इज नॉट एक्टिंग एज

play01:54

इनडायरेक्शन ऑपरेटर और डी रेफरेंसिंग

play01:56

ऑपरेटर बिकॉज हियर वी आर डिक्ले ंग पॉइंटर

play01:59

सो इट इज गोइंग टू कंपाइल दैट इट इ इट वुड

play02:02

बी अ पॉइंटर प एंड क आर पॉइंटर बिकॉज वी

play02:04

आर यूजिंग दिस एस्टिक साइन यर एंड दे आर

play02:08

गोइंग टू कंटेन एड्रेस ऑफ इंटी जर डेटा

play02:11

टाइप राइट आई होप यू गोट दिस प्लीज डोंट

play02:14

गेट कन्फ्यूज्ड विद दिस हेयर आल्सो इट इज

play02:16

एक्टिंग एज इनडायरेक्शन ऑपरेटर एंड इट विल

play02:18

गिव वैल्यू एट दिस एड्रेस नो बिकॉज हेयर

play02:20

वी आर डिक्ले ंग इट राइट सो नाउ सी इफ आई

play02:25

राइट लाइक इन प आई एम स्टोरिंग एड्रेस ऑफ

play02:28

ए सो एड्रेस ऑफ ए 1000 इन p वी हैव 1000

play02:31

नाउ p इज पॉइंट टू a राइट हेयर इफ आई राइट

play02:35

समथिंग लाइक दिस लाइक q =

play02:38

p नाउ व्हाट डज दिस मीन व्हाट एवर द

play02:42

वैल्यू इन p इट इज करेक्ट इन c राइट इट

play02:46

वुड नॉट बी इलीगल यू कैन यूज असाइनमेंट

play02:49

ऑपरेटर समथिंग लाइक दिस विद दज पॉइंट्स सो

play02:52

नाउ हेयर व्हाट वुड बी द केस व्हाट एवर द

play02:54

वैल्यू इन p p वी हैव 1000 दैट 1000 वुड

play02:57

बी असाइन टू q सो q इज दिस एंड दिस 1000

play03:01

वुड बी असाइन टू q इट मींस q इज आल्सो

play03:04

पॉइंट ंग टू a नाउ बोथ द पॉइंट्स आर पॉइंट

play03:08

टू a सो इफ यू विल प्रिंट लाइक प्रिंट एफ

play03:12

वैल्यू ऑफ़ a इफ यू विल प्रिंट समथिंग

play03:14

लाइक दिस प्रिंट f a = परसेंटेज d सिंपली

play03:20

यू कैन राइट इदर a दिस विल आल्सो गिव यू

play03:23

व्हाट 10 राइट और इफ आई राइट हेयर आई एम

play03:29

राइटिंग परसेंटेज डी एंड वन मोर परसेंटेज

play03:32

3 परडी आईम राइटिंग बिकॉज य नो यूजिंग

play03:36

थ्री मेथड्स आई एम गोइंग टू प्रिंट सो

play03:38

फर्स्ट परसेंटेज डी वुड बी रिप्लेस विद

play03:41

दिस a व्हाट एवर द वैल्यू ऑफ a नाउ एस्टिक

play03:45

p नेक्स्ट इज एस्टिक प नेक्स्ट इज एस्टिक

play03:50

q नाउ हेयर दिस इज एक्टिंग एज इनडायरेक्शन

play03:53

ऑपरेटर ए इट विल गिव व्ट 10 राइट वैल्यू

play03:57

ऑफ ए 10 एसिक मींस वैल्यू एट दिस एड्रेस

play04:01

इन p वी हैव एड्रेस 1000 वैल्यू एट 1000

play04:03

इज 10 सो इट विल गिव 10 इन q आल्सो वी हैव

play04:07

1000 q इज आल्सो पॉइंट टू a सो वैल्यू एट

play04:10

1000 इज 10 सो इट विल आल्सो गिव 10 राइट

play04:13

सो दिस इज व्ट असाइनमेंट दिस इज हाउ यू

play04:15

कैन असाइन बट इफ इफ यू राइट समथिंग लाइक

play04:17

दिस इफ आई राइट एट्रिक q एंड हेयर आल्सो

play04:22

एट्रिक p राइट सो हेयर ओबवियसली दिस विल

play04:27

गिव राइट मे बी इट विल नॉट गिव एनी एरर और

play04:29

मे बी इट विल गिव एरर और वार्निंग दिस दिस

play04:31

काइंड ऑफ थिंग व्हाई सो बिकॉज एस्टिक क्यू

play04:34

मींस हेयर वी हैव डिक्लेयर्ड दिस पॉइंटर

play04:37

एस्टिक क मींस वैल्यू एट दिस एड्रेस बट वी

play04:40

हैवेंट इनिला इज दिस क यट इन क वी डोंट

play04:43

हैव एनीथिंग

play04:45

हियर नाउ हेयर इन क वी डोंट हैव एनीथिंग q

play04:49

इज पॉइंट टू वी डोंट नो एनी अननोन लोकेशन

play04:51

वी हैवेंट इनिला q यर बट वी आर गोइंग वी

play04:55

वांट टू एक्सेस वैल्यू एट दिस

play04:58

एड्रेस सो इन क्य वी डोंट हैव ए एनीथिंग

play05:01

सो व्हाट वुड बी द वैल्यू एट दिस एड्रेस

play05:03

वी डोंट नो यू आर गोइंग टू एक्सेस व्हाट

play05:06

इल्लीगल पॉइंट मेमोरी लोकेशन सो इट विल

play05:08

गिव सम एरर राइट और मे बी यू कैन से मे बी

play05:11

इट विल गिव लाइक योर प्रोग्राम ड फाइल

play05:13

व्हाट एवर यू विल नेम दैट फाइल एकसी फाइल

play05:15

हैज स्टॉप वर्किंग दिस काइंड ऑफ थिंग मे

play05:17

बी इट विल गिव सम एरर राइट यू कैन ट्राई

play05:20

इट एट योर ओन सो नाउ बिफोर यूजिंग दिस

play05:23

थिंग वी हैव टू इनिला इज दिस क्य इन क्यू

play05:27

सपोज आई एम आई एम गोइंग टू स्टोर एड्रेस

play05:29

ऑफ बी ना एड्रेस ऑफ बी इज 1046 नाउ क इज

play05:35

पॉइंट टू

play05:37

बी राइट या यस नाउ यू कैन राइट दिस थिंग

play05:43

बट नाउ इफ यू राइट दिस थिंग देन वट विल

play05:45

हैपन सी दिस इज द केस नाउ हेयर व्ट एवर

play05:49

देर एस्टिक ऑफ प

play05:51

मींस एस्टिक ऑफ एड्रेस ऑफ प मीस एड्रेस ऑफ

play05:56

ए एड्रेस ऑफ ए इ ट 1000 मीस इन प व हैव

play06:00

एडस ऑफ सो व्हाट एवर द वैल्यू एट 1000 दैट

play06:03

इज 10 सो हेयर वी आर वी आर गोइंग टू

play06:06

एक्सेस दिस वैल्यू दैट इज 10 एंड दिस 10

play06:09

वड बी असाइन टू वेर एस्टिक क मींस वैल्यू

play06:13

एट दिस एड्रेस एस्टिक क एट्रिक क इज क इज

play06:18

इन क वी हैव

play06:19

1046 मींस वैल्यू एट दिस एड्रेस वैल्यू एट

play06:24

दिस एड्रेस एट दिस एड्रेस ज 11 मींस वी आर

play06:27

गोइंग टू एक्सेस दिस वन नाउ सो दिस 10 वुड

play06:30

बी असाइन टू हेयर नाउ एट 11 वी हैव एट द

play06:34

प्लेस ऑफ 11 वी हैव 10 बिकॉज ऑफ दिस लाइन

play06:38

सो नाउ हेयर इन दिस केस वी आर एक्सेसिंग द

play06:40

वैल्यूज इन द प्रीवियस केस वी र एक्सेसिंग

play06:43

play06:43

पॉइंटर राइट दज आर दज टू आर डिफरेंट

play06:47

थिंग्स यू हैव टू टेक केयर ऑफ दिस थिंग

play06:49

नाउ हेयर इन बी आल्सो वी हैव 10 राइट सो

play06:53

नाउ इफ यू प्रिंट दिस थिंग देन ए वुड बी

play06:56

10 एस्टिक प वुड बी इन p वी हैव 1000

play07:00

वैल्यू ट 1000 इज़ 10 10 वुड बी प्रिंटेड

play07:03

एट्रिक

play07:04

q नाउ इन q वी हैव एड्रेस

play07:07

1046 एट दिस एड्रेस आल्सो वैल्यू एट दिस

play07:10

एड्रेस आल्सो वी हैव 10 सो 10 वुड बी

play07:12

प्रिंटेड एट द बोथ द केसेस नाउ वी हैव 10

play07:15

सो आई होप यू गट द डिफरेंस बिटवीन दिस एंड

play07:18

q = p सो नाउ लेट मी शो यू दिस थिंग

play07:21

प्रैक्टिकली ऑन माय लैपटॉप ओके नाउ लेट मी

play07:24

क्रिएट अ फाइल फर्स्ट ऑफ़

play07:27

ऑल पॉइंटर

play07:32

असाइनमेंट डट सी

play07:41

राइट ल टेक दिस हेडर

play07:44

फाइल नाउ मेन फंक्शन एंड हेयर आईम गोइंग

play07:48

टू टेक टू वेरिएबल ए इ 10 एंडम गोइंग टू

play07:51

टेक बी इक्वल टू सपोज फ राइट एंड टू

play07:57

पॉइंटर प एंड क राइट नाउ इन प आम असाइनिंग

play08:04

एड्रेस ऑफ ए राइट एंड आम राइटिंग र इ

play08:10

प राइट सो नाउ जस्ट प्रिंट

play08:14

प्रिंट ए

play08:16

इट परसेंटेज

play08:19

डी

play08:21

एंड स्लम राइटिंग हेयर और बीन

play08:26

सेम

play08:28

लाइन यूजिंग दिस मेथड थ्री मेथड आईम गो टू

play08:31

प्रिंट ए वैल्यू राइट सो ना फर्स्ट ऑफ लल

play08:36

राइट ए देन आईम गोइंग टू एक्सेस

play08:39

विद यूजिंग

play08:41

दैट पी पॉइंटर एंड नेक्स्ट यूजिंग क्यू

play08:45

पॉइंटर

play08:47

राइट सो लेट म सेव इट एंड रन इट इट शुड

play08:50

प्रिंट वैल्यू ऑफ ए लाइक 10 ी थ्री टाइम्स

play08:54

इ 10 10 10 आई मीन दिस ए इ 10 वैल्यू ऑफस

play08:59

स्ट्रिक प व्हाट एवर द वैल्यू एट दिस

play09:01

एड्रेस इन प वी हैव एड्रेस ऑफ ए दैट वड बी

play09:03

प्रिंटेड इन q आल्सो वी हैव नाउ एड्रेस ऑफ

play09:05

ए बिकॉज वी हैव असाइन q इल p राइट नाउ इफ

play09:09

आई राइट हेयर दिस ए q एंड एटिक p एंड नाउ

play09:15

सी नाउ सी लेट मी रन दिस व्ट एरर यू विल

play09:19

गेट सी नाउ सी इट इज गिविंग लाइक दिस हैज

play09:24

स्टॉप वर्किंग बिकॉज हेयर व्हाट यू आर

play09:26

ट्राइट डू एंड इट इज नॉट गिविंग एनी

play09:28

आउटपुट वी हैवेंट इनिश इज्ड q एंड वी आर

play09:31

गोइंग टू वी आ वी वांट टू एक्सेस दैट

play09:34

कंटेंट व्हिच इज़ य नो दैट मेमोरी लोकेशन

play09:37

व्हिच इज़ पॉइंट बाय दिस q बट q इज़ पॉइंट

play09:40

टू अननोन लोकेशन वी हैवेंट इनिश आइज इट

play09:42

राइट सो नाउ दिस वुड बी इलीगल सो फर्स्ट

play09:46

बिफोर यूजिंग एट्रिक q वी हैव टू इनिश इइ

play09:49

दिस q q इज इक्वल टू एड्रेस ऑफ़ सपोज

play09:51

b राइट ना नाउ सी बिफोर यूजिंग दिस लाइन

play09:56

नाउ इफ यू वांट टू प्रिंट एट्रिक q

play10:00

देन ए वड बी 10 ए प वड बी 10 ए क वड बी

play10:05

फ लेट म रन

play10:07

दिस सी नाउ फर्स्ट ए 10 ए प 10 एंड देन फ

play10:13

बिक ए क क इ पंटिंग टू बी एंड बी इ फ राइट

play10:17

नाउ आई एम राइटिंग हेयर ए क इ ए प सो ना

play10:22

एट द प्लेस ऑफ दिस फ व्ट यू शुड गेट

play10:28

10 सी हेयर आल्सो नाउ वी हैव ऑल एट द थ्री

play10:31

प्लेसेस वी हैव 10 10 10

play10:34

बिकॉज़ दैट वैल्यू फाइव हैज बीन रिप्लेस

play10:36

बाय 10 हियर दैट वी हैव डिस्कस राइट सो आई

play10:40

होप यू गट द डिफरेंस बिटवीन q = p एंड

play10:42

एट्र q = s p राइट सो प्लीज़ अ यू इफ यू

play10:46

यूज़ दज़ काइंड ऑफ़ थिंग द पॉइंटर देन देन

play10:49

यू हैव टू बी वेरी केयरफुल वाइल यूजिंग

play10:51

दज़ सिंबल्स लाइक स्पेशली दिस इनडायरेक्शन

play10:54

ऑपरेटर सिंबल राइट एंड सी हियर अ वन मोर

play10:57

थिंग आई हैव टोल्ड यू लाइक इफ इफ आई राइट

play10:59

एफ एल ओ एटी फ्लोट पॉइंट्स आर ऑफ टाइप

play11:02

फ्लोट एंड आई एम असाइनिंग p इ इक्वल टू

play11:04

दिस एंड q इ इक्वल टू दिस राइट एंड सपोज

play11:06

आई एम नॉट राइटिंग दिस लाइन नाउ लेट मी रन

play11:09

दिस प्रोग्राम एंड व्हाट आउटपुट यू विल

play11:11

गेट सी दिस इज इनकम्पेटिबल पॉइंटर टाइप

play11:15

बिकॉज हेयर दिस लाइन विल टेल दैट पॉइंटर p

play11:19

एंड q विल कंटेन एड्रेस ऑफ फ्लो डेटा टाइप

play11:22

बट हेयर p इज कंटेनिंग एड्रेस ऑफ़ ए एंड ए

play11:24

इज एंट सो दैट वुड बी

play11:29

सो बी एंड बी इज आल्सो इंट आई होप यू गट

play11:31

दिस वी शुड बी वेरी केयरफुल वाइल इनिला

play11:33

इजिंग लाइक दिस पॉइंटर अबाउट दिस डटा टाइप

play11:36

राइट इट शुड बी इंट हियर राइट और मे बी

play11:39

हेयर इफ यू राइट

play11:42

फ्लोट दैट वुड बी फाइन राइट नाउ लेट मी रन

play11:48

दिस एंड सी व्हाट इट इज गिविंग हेयर इट इज

play11:52

गिविंग बिकॉज ज जीरो एंड दिस काइंड ऑफ

play11:54

थिंग बिकॉज़ हेयर वी आर प्रिंटिंग इट विद

play11:56

परसेंटेज डी फॉर फ्लोट वी शुड टेक

play11:58

परसेंटेज ए

play12:03

राइट एंड नाउ लेट मी रन

play12:06

दिस सी 10 पॉइंट दिस 10 पॉइंट दिस फ पॉइंट

play12:10

दिस आफ्टर पॉइंट इट इज टेकिंग सिक्स

play12:12

डिजिट्स फॉर प्रेसीजन इन फ्लोट इट टेक्स

play12:15

सि सिक्स डिजिट्स राइट सो आई होप यू गट

play12:18

दिस ट्स

play12:27

दैट्ची

play12:33

k

Rate This

5.0 / 5 (0 votes)

関連タグ
C ProgrammingPointersCoding BasicsPractical ExamplesProgramming TutorialMemory ManagementAssignment OperatorIndirection OperatorCoding TipsBeginner Friendly
英語で要約が必要ですか?