File Handling | Writing/Reading Characters Using fputc and fgetc functions | C programming | 1.2

  Рет қаралды 9,310

NG Tutorials

NG Tutorials

Күн бұрын

Пікірлер: 11
@p.r1074
@p.r1074 Жыл бұрын
Sir, fp is a pointer so it will hold the address of buffer [0] means the first element of the buffer.Therefore ,here you put the characters in the file by the pointer and so ch[i] when i =0 will put w but in the second time you don't increase the value of fp so how the hole string will be print on the file as fp is still pointing to the first element and don't move on the second bit . Briefly , I was saying as Ch[0]=fp then in second time it should be Ch[1]=fp+1; Please solve my doubt . 9:14
@suhaibkhan4956
@suhaibkhan4956 Жыл бұрын
ch[0] reads first character and write it at the location where fp pointer points then after ch[1] takes the second character and writes it at new fp pointer location because fp pointer increments of its own to next location when dealing with the file pointer. if i am not wrong
@Raj-yi1ud
@Raj-yi1ud Жыл бұрын
Sir your explanation is awesome. But sir I have a doubt please solve it I am very confuse in that . As the address of the first character of the file must be in the file pointer .Then in the while loop why we are not incrementing the fp(file pointer) for the checking the end of file. 9:17
@GovindKumar-jl5ob
@GovindKumar-jl5ob 3 жыл бұрын
Bahut sundar
@de3wanclassroom778
@de3wanclassroom778 4 жыл бұрын
nice sir
@aliabbas632
@aliabbas632 2 жыл бұрын
Nice
@Victory-cn4cw
@Victory-cn4cw 3 жыл бұрын
Please one more video upload on File handling Much Data in file ,some data cut from file and paste in other file but cut from top to bottom
@ttitrends
@ttitrends 3 жыл бұрын
Write mode opens the existing file and if there is no file , then it will create new file sir. if i am not wrong.
@ngtutorials
@ngtutorials 3 жыл бұрын
Yes
@surajmukhiya2643
@surajmukhiya2643 2 жыл бұрын
Sir, ek baat bolu galat lage to forgive me. Sir aacah hota agar pahile aap file create karna sikhate uske baad koi dusra operation perform karna sikhate.
@shahilpatel9392
@shahilpatel9392 3 жыл бұрын
Sir 1 Suggestion :; Please don't use Turbo C for coding it's better to use VS Code or Code Blocks.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
Error Handling | C Programming Tutorial
8:23
Portfolio Courses
Рет қаралды 17 М.
I am not sorry for switching to C
11:34
Sheafification of G
Рет қаралды 180 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН