Search:

Type: Posts; User: raghuveerd

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,009

    Yes ..i tried to compile it ..It says "...

    Yes ..i tried to compile it ..It says " Declaration syntax error in function main"
  2. Replies
    5
    Views
    2,009

    comma operator

    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
  3. Thread: C puzzle

    by raghuveerd
    Replies
    17
    Views
    3,420

    C puzzle

    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");
  4. Replies
    6
    Views
    1,075

    have a doubt regarding files

    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...
  5. Replies
    2
    Views
    695

    Problem with handling a file

    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...
  6. Replies
    16
    Views
    6,212

    Now i can print the text in my file on to the...

    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;
  7. Replies
    16
    Views
    6,212

    Thanks a lot..i got it now..actually i was...

    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
  8. Replies
    16
    Views
    6,212

    The thing i want to do is to print the text in...

    The thing i want to do is to print the text in raghu.txt on the screen. Can i do that!
  9. Replies
    16
    Views
    6,212

    I am sorry but i have a questions..Is this forum...

    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.
  10. Replies
    16
    Views
    6,212

    i made some changes ..but still cant read...

    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)
  11. Replies
    16
    Views
    6,212

    I did not get the 4 point.."You're using...

    I did not get the 4 point.."You're using non-standard code." can you tell me more about that ,Mac
  12. Replies
    16
    Views
    6,212

    Unable to open a file for reading

    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;...
Results 1 to 12 of 12