Search:

Type: Posts; User: phoneix_hallows

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    9,480

    but when we use a pointer doesn't it actually...

    but when we use a pointer doesn't it actually refer only the address???
  2. Replies
    28
    Views
    9,480

    why does the compiler ask for an & sign before a...

    why does the compiler ask for an & sign before a pointer????


    printf("\nEnter the employee number of employee %d:\t",i+1);
    scanf("%d",&ptr[i]->no);
  3. Replies
    28
    Views
    9,480

    thanks!!!!

    thanks!!!!
  4. Replies
    28
    Views
    9,480

    can you pls tell me how to rectify this error ...

    can you pls tell me how to rectify this error

    line 8: error: field 'date' has incomplete type



    #include<stdio.h>

    struct EMP
    {
  5. Replies
    28
    Views
    9,480

    okie.... i'll do that.... thanks guys

    okie.... i'll do that.... thanks guys
  6. Replies
    28
    Views
    9,480

    also how should the user enter the date ..........

    also how should the user enter the date ....... should it be like "ddmmyyyy" or how so that the day, month and year are stored correctly in the specified struct members
  7. Replies
    28
    Views
    9,480

    if i want to get the date from the user.... say,...

    if i want to get the date from the user.... say, "Enter the date of joining", how to get the input from the user using struct tm???
  8. Replies
    10
    Views
    2,961

    the pseudo code helped me.... thanks!!

    the pseudo code helped me.... thanks!!
  9. Replies
    10
    Views
    2,961

    still.... i'm not able to find my error..... ...

    still.... i'm not able to find my error.....

    ***incremented the value of i in the while loop**** that was very silly from my side
  10. Replies
    10
    Views
    2,961

    thanks for ur time mate

    thanks for ur time mate
  11. Replies
    10
    Views
    2,961

    all the characters in the output screen are what...

    all the characters in the output screen are what i typed
  12. Replies
    10
    Views
    2,961

    i'm getting an incorrect output.... no errors......

    i'm getting an incorrect output.... no errors... sorry for not specifying these things in my first post...


    ./a.out

    Enter string
    abcd
  13. Replies
    10
    Views
    2,961

    manual string reverse

    enlighten me with my mistake



    #include<stdio.h>

    int str_rev(char *s1)
    {
    char str2[50];
    char *s2=str2;
  14. got it!!! thanks

    got it!!! thanks
  15. array of pointers to an array of structures

    how does i access the structure variable by using an array of pointers to that structure..... also the structure variable is an array in this case...

    say for example



    struct EMP
    {
    ...
  16. Replies
    28
    Views
    9,480

    that was really helpful...... thanks... this...

    that was really helpful...... thanks... this forum is really amazing!!!!!
  17. Replies
    28
    Views
    9,480

    actually i've to use the date inside a structure...

    actually i've to use the date inside a structure only... so thought it ' d further mess up the code by using nested structures......

    thanks for your suggestions
  18. Replies
    28
    Views
    9,480

    Data structure for storing dates

    what data type can be used to get the "DATE" from the user???

    say, for example. date of joining of an employee
  19. Replies
    9
    Views
    6,629

    thanks for clarifying guys

    thanks for clarifying guys
  20. Replies
    9
    Views
    6,629

    sorry, the above returns the following warning...

    sorry, the above returns the following warning msg on compilation

    warning: incompatible implicit declaration of built-in function ‘exit’
  21. Replies
    9
    Views
    6,629

    can exit(0) be used in a local function so that...

    can exit(0) be used in a local function so that the program ends like wat i 've used in the above code???

    actually the above code returns an error
  22. Replies
    9
    Views
    6,629

    exit(0) doubt

    i want to know how to use the exit(0) in the following code...... also the difference between exit(0) and exit(1)... thanks



    int check(char *s1)
    {
    int i=0;
    while(*(s1+i) != '\0')
    ...
  23. Replies
    8
    Views
    2,456

    thanks a lot !!!!

    thanks a lot !!!!
  24. Replies
    8
    Views
    2,456

    actually i want to do it using pointers.... is...

    actually i want to do it using pointers.... is there any way to do so.... i want it to be simple like the incorrect code i tried above..... apologies for bothering u too much
  25. Replies
    8
    Views
    2,456

    thanks again..... i shall try and get back to you

    thanks again..... i shall try and get back to you
Results 1 to 25 of 29
Page 1 of 2 1 2