I am very grateful to you sir..Because each & every topics you can teach us such a nice way..Thanks a lot sir..Insha Allah you will always help us in this way..
I have a question. I am declaring the file pointer but i am not declaring the address of the file pointer, so how is the address of the file pointer declared..?
vai same program e eta error dekhacche #include int main() { FILE *file; char name[20]="shafi prottoy"; int length= strlen(name); int i; file=fopen("test.txt","w"); if(file==NULL) { printf("file doesn't exist"); } else { printf("file is opened"); for(i=0;i
vai same programe error asche #include int main() { FILE *file; char name[20]="Kamrul Hasan"; int length = strlen(name); int i; fopen("test.txt","w"); if(file==NULL) { printf("File doesn't exist"); } else { printf("File has been opened "); for(i=0; i
file = fopen("saddam.txt","w"); if (file == NULL) { printf("file doesn't exist"); return; } else { printf("enter the name:"); getc(name); fprintf(file,"name = %s ",name); printf("enter the age:"); scanf("%d",&age); fprintf(file,"age = %d ",age); printf("enter the salary:"); scanf("%d",&salary); fprintf(file,"salary = %d ",salary);
fclose(file); } getch(); } sir ai vulgula hocha ki korbo sir Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell aka.ms/pscore6 PS C:\Users\UCC\OneDrive\Desktop\file> cd "c:\Users\UCC\OneDrive\Desktop\file\" ; if ($?) { gcc file-writing.c -o file-writing } ; if ($?) { .\file-writing } file-writing.c: In function 'main': file-writing.c:19:9: warning: 'return' with no value, in function returning non-void return; ^~~~~~ file-writing.c:5:5: note: declared here int main() ^~~~ file-writing.c:26:14: warning: passing argument 1 of 'getc' from incompatible pointer type [-Wincompatible-pointer-types] getc(name); ^~~~ In file included from file-writing.c:1:0: c:\mingw\include\stdio.h:693:43: note: expected 'FILE * {aka struct _iobuf *}' but argument is of type 'char *' __CRT_INLINE __cdecl __MINGW_NOTHROW int getc (FILE * __F) ^~~~ enter the name: PS C:\Users\UCC\OneDrive\Desktop\file>
I am very grateful to you sir..Because each & every topics you can teach us such a nice way..Thanks a lot sir..Insha Allah you will always help us in this way..
excellent vaia...Thank you .
you are really excellent bro
Thank you very much,, Brother..
Thanks a lot
Thank you so much.
boss apni
ami sotti khubi osadharon bujhan ,
algorithm er jonno kno boi suggest korle upokrito hotam
Sir, Suparna Bhattacharya ke?
Dada command line arguments in c er video korun....
who is Suparna bhatarchaya ....pls ans sir
I have a question.
I am declaring the file pointer but i am not declaring the address of the file pointer, so how is the address of the file pointer declared..?
Brother Excuse me first
can you kindly tell me who is Suparna Bhattacharjee?
who is Suparna bhatarchaya
😂
আমি শুধু এই কমেন্টটা খুঁজতেই কমেন্ট সেকশনে এলাম😂😂😂😂😂
স্যার প্রজেক্টে ডাটাগুলোকে save করতে সি প্রোগ্রামের ফাইল কিভাবে ইউজ করব?
vai same program e eta error dekhacche
#include
int main()
{
FILE *file;
char name[20]="shafi prottoy";
int length= strlen(name);
int i;
file=fopen("test.txt","w");
if(file==NULL)
{
printf("file doesn't exist");
}
else
{
printf("file is opened");
for(i=0;i
include string.h header file
Vaiya Suporna Bhattachar atar mane ki?
Eta Ekta manusher nam
vai same programe error asche
#include
int main()
{
FILE *file;
char name[20]="Kamrul Hasan";
int length = strlen(name);
int i;
fopen("test.txt","w");
if(file==NULL)
{
printf("File doesn't exist");
}
else
{
printf("File has been opened
");
for(i=0; i
file = fopen("test.txt","w");
apni file variable declare koren ni vai.
সেইম প্রোগ্রামে Erorr দেখাচ্ছে !
C program ব্যবহার করে বাংলা লিখব কিভাবে?
btw vhai file has written*
#include
#include
#include
#include
int main()
{
FILE *file;
char name[40];
int age;
int salary;
file = fopen("saddam.txt","w");
if (file == NULL)
{
printf("file doesn't exist");
return;
}
else
{
printf("enter the name:");
getc(name);
fprintf(file,"name = %s
",name);
printf("enter the age:");
scanf("%d",&age);
fprintf(file,"age = %d
",age);
printf("enter the salary:");
scanf("%d",&salary);
fprintf(file,"salary = %d
",salary);
fclose(file);
}
getch();
}
sir ai vulgula hocha ki korbo sir
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell aka.ms/pscore6
PS C:\Users\UCC\OneDrive\Desktop\file> cd "c:\Users\UCC\OneDrive\Desktop\file\" ; if ($?) { gcc file-writing.c -o file-writing } ; if ($?)
{ .\file-writing }
file-writing.c: In function 'main':
file-writing.c:19:9: warning: 'return' with no value, in function returning non-void
return;
^~~~~~
file-writing.c:5:5: note: declared here
int main()
^~~~
file-writing.c:26:14: warning: passing argument 1 of 'getc' from incompatible pointer type [-Wincompatible-pointer-types]
getc(name);
^~~~
In file included from file-writing.c:1:0:
c:\mingw\include\stdio.h:693:43: note: expected 'FILE * {aka struct _iobuf *}' but argument is of type 'char *'
__CRT_INLINE __cdecl __MINGW_NOTHROW int getc (FILE * __F)
^~~~
enter the name:
PS C:\Users\UCC\OneDrive\Desktop\file>