Search:

Type: Posts; User: princez90

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,046

    thanks for the suggestions.. I'll do my best in...

    thanks for the suggestions.. I'll do my best in the finals.. wish me luck..
  2. Replies
    2
    Views
    1,986

    pointer coding

    #include <stdio.h>
    #include <conio.h>
    void fun(int , int*);
    int main(void){
    int a, i;
    int x = 100,y = 200, z = 300;
    int myArr[] = {18,22,3};
    int *ptr1, *ptr2;
    ptr1 = &y;
    ptr2 = &z;
  3. Replies
    6
    Views
    2,046

    need suggestions

    hi!

    I would like some suggestions on which site provides good c programming exercise with answers.. What is the best way to study c programming? ;)
  4. Thread: linked list

    by princez90
    Replies
    3
    Views
    931

    it's okay.. i knew it already.. the error is...

    it's okay.. i knew it already.. the error is because i didn't use a header file for malloc.. it's #include <malloc.h>.. :)
  5. Thread: linked list

    by princez90
    Replies
    3
    Views
    931

    linked list

    what's wrong with this coding?


    #include <stdio.h>
    #include <conio.h>

    typedef struct node{
    int num;
    struct node *link;
    }NODE;
  6. Replies
    14
    Views
    1,728

    so, p = 0??

    so, p = 0??
  7. Replies
    14
    Views
    1,728

    using this program, int num[5] = { 3, 4, 6,...

    using this program,


    int num[5] = { 3, 4, 6, 2, 1 };
    int* p = num;
    int* q = num + 2;
    int r = &num[1];

    does it mean p will return 3? what will *p return as? will it be 3 also?
  8. Replies
    14
    Views
    1,728

    and another thing.. what the different if i...

    and another thing.. what the different if i printf p and i printf *p ? pointer is really hard for me..
  9. Replies
    14
    Views
    1,728

    if the code is like this [code] int* p =...

    if the code is like this

    [code] int* p = &ary[3] [\code]

    what does the '&' stands for? why some other does not have the '&'?
  10. Replies
    14
    Views
    1,728

    It's ok.. at least i still understand.. it do...

    It's ok.. at least i still understand.. it do help me though.. :D
  11. Replies
    14
    Views
    1,728

    understanding pointers

    i don't really understand how to read pointers.. what does it really represent?
    for example



    int num[5] = { 3, 4, 6, 2, 1 };
    int* p = num;
    int* q = num + 2;
    int r = &num[1];
  12. Replies
    7
    Views
    4,075

    thanks for all your help.. I'll give it a try.. ;)

    thanks for all your help.. I'll give it a try.. ;)
  13. Replies
    7
    Views
    4,075

    i don't quite understand.. i intended to make the...

    i don't quite understand.. i intended to make the input an integer only.. do you mean that the computer will display a binary no matter what?
  14. Replies
    7
    Views
    4,075

    yes.. but for example, changing octal to binary,...

    yes.. but for example, changing octal to binary, i'll be dividing the numbers in ocatl with the number 2.. The remainder will be taken as the answer.. But it will be taken from down to up.. If i'm...
  15. Replies
    7
    Views
    4,075

    number system conversion

    i need to build a program to convert

    • Binary-to-Octal, Octal-to-Binary.
    • Binary-to-Hexadecimal, Hexadecimal-to-Binary.
    • Decimal to Binary and Hexadecimal.
    • Binary, Hexadecimal, Octal to...
  16. Replies
    1
    Views
    1,317

    help me understand string

    I have great problems regarding string. Can anyone give me any good sites that I can surf to help me understand string. I'm confused. :confused: Whats the difference between printf, scanf, gets,...
  17. Replies
    3
    Views
    1,248

    thanks.. u guys helped a lot..

    thanks..
    u guys helped a lot..
  18. Replies
    3
    Views
    1,248

    need string help

    printf ("Title >");
    fflush(stdin);
    scanf ("%s", ctlg[x].title);
    printf ("Title :%s \n", ctlg[i].title);

    i've typed the program above to do a program on library catalog. When I...
Results 1 to 18 of 19