Yes ..i tried to compile it ..It says " Declaration syntax error in function main"
Type: Posts; User: raghuveerd
Yes ..i tried to compile it ..It says " Declaration syntax error in function main"
If ...
int a,b; is equivalent to int a; int b;
then
int a=3,2; should be equivalent to int a=3;int a=2;
I am confused ..can some one tell me what is wrong there
I found this puzzle on C but couldnt solve..can some one give me the answer please
what goes in the condition to print Hello World
if "condition"
printf ("Hello");
else
printf("World");
I am trying to write some text in to a file through the program. And then trying to print that text on to the screen. My program is running but with two warnings.
I couldn't understand and overcome...
I was learning to print the text in a file on to the screen.My program runs but when compiled it gives me 2 warnings say:
Possible use of 'str' before definition in function main.
I am able to...
Now i can print the text in my file on to the screen..is the right way to do it
#include<stdio.h>
int main()
{
FILE *fp;
char *str;
Thanks a lot..i got it now..actually i was confused with the what fprintf and fscanf does...
thanka a lot Mac,Salem,Rob,vart
The thing i want to do is to print the text in raghu.txt on the screen. Can i do that!
I am sorry but i have a questions..Is this forum not intended for beginers in C Programming. I want to know if i am really posting silly questions wasting time of experienced programmers.
i made some changes ..but still cant read anything
#include<stdio.h>
#include<conio.h>
int main()
{
FILE *fp;
clrscr();
fp=fopen("raghu.txt","r");
if(fp==NULL)
I did not get the 4 point.."You're using non-standard code." can you tell me more about that ,Mac
Hi
I am a beginer to C Programming.I was trying to open a .txt file for reading but couldnt do that this is my code..Help me out.
#include<stdio.h>
#include<conio.h>
main()
{
FILE *fp;...