Search:

Type: Posts; User: c_lady

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. difference between data object and data structure?

    I cannot get it... I am kind of newbie in OOP
  2. Replies
    7
    Views
    1,825

    I think this impossible! Since I need to debug...

    I think this impossible! Since I need to debug (build) my program successfully before i give an input text etc. So how come my debugger will be involved when the program already has created...
  3. Replies
    7
    Views
    1,825

    How to invoke my debugger? I use xCode ... any...

    How to invoke my debugger? I use xCode ... any suggestion?
  4. Replies
    7
    Views
    1,825

    input text file - use debugger?

    Hi guys!

    Lets say I have the below program (K&R, 1.9), which simply does:

    while (there's another line)
    if (it's longer than the previous longest)
    (save it)
    (save...
  5. #include main() { char...

    #include <stdio.h>
    main()
    {
    char *colors[3][10] = {'\0'};
    printf("\nEnter 3 colors seperated by spaces: ");
    scanf("%s %s %s", colors[0], colors[1], colors[2]);
    printf("\nYour entered: ");...
  6. format '%p' expects type 'void *', but argument * has type 'int

    Hi guys!

    I need to understand why this program, gives this error (although it compiles and does the job well)



    #include <stdio.h>
    main()
    {
    char *myString = "Mike";
  7. Replies
    10
    Views
    1,852

    I trust everyone in this forum ;) starting first...

    I trust everyone in this forum ;) starting first from tabstop and continuing by you laserlight...
  8. Replies
    10
    Views
    1,852

    Even in C++?

    Even in C++?
  9. Replies
    10
    Views
    1,852

    3. Why we're not performing typecasting in this...

    3. Why we're not performing typecasting in this situation, as?



    name = (int *) malloc(80 * sizeof(*name));
  10. Replies
    10
    Views
    1,852

    Thanks, tabstop!

    Thanks, tabstop!
  11. Replies
    10
    Views
    1,852

    malloc and how properly to use-it

    hi friends,

    I am reading this book: Amazon.com: C Programming for the Absolute Beginner (For the Absolute Beginner (Series).) (9781931841528): Michael Vine: Books

    And to be on right track I...
  12. Replies
    6
    Views
    1,032

    Do you mean something like this? #include...

    Do you mean something like this?



    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    char *name;
    name = (char *) malloc(80*sizeof(char));
  13. Replies
    6
    Views
    1,032

    free memory from malloc

    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    char *name;
    name = (char *) malloc(80*sizeof(char));
    if ( name != NULL ) {
    printf("\nEnter your name: ");
    gets(name);...
  14. Thread: pointers

    by c_lady
    Replies
    6
    Views
    876

    printf("\n%d", *iPtr+4); // this will increment...

    printf("\n%d", *iPtr+4); // this will increment a[0] temporary


    guys I am asking how to increment as I do above but this is temporary and I would like my incrementation to not be temporary!!!
    ...
  15. Thread: pointers

    by c_lady
    Replies
    6
    Views
    876

    pointers

    #include<stdio.h>
    main(){
    int a[5]={5,50,100,150};
    int *iPtr;
    iPtr=a;
    printf("\n%d", ++*iPtr); // this will increment a[0] but not temporary
    printf("\n%d", *iPtr+4); // this will increment...
  16. Replies
    9
    Views
    6,229

    ok... but this means C programming language has...

    ok... but this means C programming language has one library? C standard library - Wikipedia, the free encyclopedia or? who are other types of libraries of C
  17. Replies
    9
    Views
    6,229

    difference between header and library

    please explain... thanks
  18. Replies
    2
    Views
    1,450

    linked list - cycle detection

    I am not looking you to explain the problem with coding... but just let me know what is the problem of cycle detection in linked lists. I read many docs (wikipedia etc.) I cannot understand :(
  19. Replies
    5
    Views
    1,484

    sorry I meant 12 :)

    sorry I meant 12 :)
  20. Replies
    5
    Views
    1,484

    ok if i have this structure struct...

    ok if i have this structure




    struct person{
    char name[9];
    };
  21. Replies
    5
    Views
    1,484

    data structure alignment

    I am reading this and got curious!
    Data structure alignment - Wikipedia, the free encyclopedia

    do you think if the struct has +1 variable, the struct will ALWAYS allocate 2 more bytes + of course...
  22. Thread: cmalloc

    by c_lady
    Replies
    1
    Views
    2,444

    cmalloc

    Hi guys!

    I have cmalloc as directive

    #include <cmalloc>

    but I cannot compile-it from bash it says:
    error: cmalloc: No such file or directory

    can you tell me how to compile it with:
  23. Thread: Header file

    by c_lady
    Replies
    1
    Views
    1,020

    Header file

    Header file - Wikipedia, the free encyclopedia

    Search: "One drawback of this method is that the prototype must be present in all files that use the function. Another drawback is that if the return...
  24. Thread: bubble sort

    by c_lady
    Replies
    3
    Views
    992

    bubble sort

    Do you have any idea how to implement bubble sort without using arrays?

    Thanks a lot!
  25. command-line arguments or parameters to a program

    if I have a command-line argument such as:
    ./KR<alice.txt -x -n course

    and if my main function is:
    main(int argc, char *argv[])

    how many arguments (argc) I have?

    I need some support...
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4