.maverk
.maverk
what are these numbers in c language ?
#include <stdio.h>

int main(){
FILE *file = fopen("test.txt", "ab");

fwrite("hello world", 1,4, file);
}
#include <stdio.h>

int main(){
FILE *file = fopen("test.txt", "ab");

fwrite("hello world", 1,4, file);
}
what is 1 and 4 ?? if i am not mistaken 4 is the number of bytes to read and 1 is the size of the byte which means i can increase the size of 1 to wherever i want to present unicodes am i wrong ?
5 replies
why is this behaviour happening ?
No description
20 replies
where is the difference between these two file modes ?
where is the difference between w and w+ in c ? they both erase the file where is the point of using w+ in c language ?
108 replies