Search:

Type: Posts; User: krishna

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    954

    thanks matsp

    thanks matsp
  2. Replies
    2
    Views
    954

    unkown behaviour

    when i am running this code it is giving different behaviur with scanf("%c",&op) as mentioned in this code



    #include<stdio.h>
    #include<conio.h>
    int main(void)
    {

    int a,b;
  3. Replies
    8
    Views
    5,546

    ping an IP and get status

    Dear friends,
    i want to make a C program which can ping an IP and provide the status whether that device is available or not in the form of some integer value i.e for available give '1' and other...
  4. Replies
    11
    Views
    3,688

    this is happening because of type promotion in C,...

    this is happening because of type promotion in C,
    before the shift operation it will convert it to unsigned int than afterword calculation it scale down it in the unsigned or signed char depends on...
  5. hiiiii this can print any base 10 number to any...

    hiiiii this can print any base 10 number to any other base upto 16-base..


    #include<stdio.h>
    static unsigned long int base;
    int main(void)
    { unsigned long int num;
    printf("Enter the...
  6. Replies
    4
    Views
    1,518

    what do you want to do in reader() function , it...

    what do you want to do in reader() function , it is not clear
    first, you are opening the file which is already opend than you are taking integer value in local variable int f , and then updating...
  7. Replies
    14
    Views
    1,105

    yaa ..we can correct by both way either change in...

    yaa ..we can correct by both way either change in function or change in call declaration
  8. Replies
    14
    Views
    1,105

    hiiii vart acctualy main problem in the.....

    hiiii vart acctualy main problem in the..
    printf("&#37;i",result); statement because he/she has define it as 0 in main so it wll always print the same value whatever the value return by the function
  9. Replies
    14
    Views
    1,105

    check your function declaration ..there should be...

    check your function declaration ..there should be two argumnets..
    int isValid(int *, int);
    because you are passing the address of the array not the value..
    valid =isValid(values, i);
  10. Replies
    14
    Views
    1,105

    there was two error in code... 1.Function...

    there was two error in code...
    1.Function declaration
    2.printf(“&#37;d”,result);----> it should be printf(“%d”,valid);
  11. Replies
    14
    Views
    1,105

    Try This code.... #include ...

    Try This code....



    #include <stdio.h>
    #include <stdlib.h>
    #define TRUE 1
    #define FALSE 0
    #define SIZE 5
    //prototype
  12. Replies
    32
    Views
    2,738

    plaese try this..may be due to level of...

    plaese try this..may be due to level of indirection it is creating problem
    ratio=(int)comments/(int)statements;
    it may help you.....
    i ahve tried this simler code it is working fine.......

    ...
  13. Replies
    32
    Views
    2,738

    Due to level of indirection it may create...

    Due to level of indirection it may create problem..
    Try this..

    ratio=(int) comments/(int) statements;
  14. Replies
    10
    Views
    2,629

    thanks for this correction

    thanks for this correction
  15. Replies
    10
    Views
    2,629

    Try this, it may solve your problem .. if ((fp =...

    Try this, it may solve your problem ..
    if ((fp = fopen("index.html", 'r')) == NULL)
  16. Replies
    29
    Views
    6,441

    Thanks

    [QUOTE=Elysia;699337]
    --- Dangers of scanf and fscanf ---

    Thanks Eltsia .. It is great topic for Beginners as well as for Experts .. because we often think it is a easy one to print something on...
Results 1 to 16 of 17