Search:

Type: Posts; User: veera

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,778

    But in this case it return garbage value..... ...

    But in this case it return garbage value.....

    main()
    {
    int x,count;
    char y[10];
    for(x=0;x<10;x++)
    count+=scanf("%c",&y[x]);
    printf("%d",count);
    }
  2. Replies
    5
    Views
    2,778

    number of characters entered

    number of characters entered
  3. Replies
    5
    Views
    2,778

    How it happen...?

    hai.. I am new one to C. the following code makes infinite loop ...!! how it happen..


    main()
    {
    int x;
    char y[10];
    for(x=0;x<10;x++)
    x=scanf("%c",&y[x]);
    printf("%d",x);
Results 1 to 3 of 3