Search:

Type: Posts; User: callkalpa

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    13,097

    Variable declaration Vs definition

    In C what is meant by variable declaration and variable definition?

    int a; -----> declaration
    a = 10; -------> definition

    Is this correct? Or it is other way around?

    Then what is "int a =...
  2. Replies
    2
    Views
    1,681

    Thanks

    Thanks
  3. Replies
    2
    Views
    1,681

    segmentation error

    void new_friend(){
    char *name;
    char *phone;
    char *email;

    printf("\n------New friend info------\n");
    printf("Name: ");
    scanf("%s", name);
    printf("Phone-No: ");
    scanf("%s", phone);
Results 1 to 3 of 3