Search:

Type: Posts; User: RyanC

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    158

    I mean, once I write a code, how should I...

    I mean, once I write a code, how should I visualize NULL pointer?! how should I think about it to use it in a correct way in my code?!
  2. Replies
    2
    Views
    158

    Reading a NULL pointer

    Hi guys, we know that NULL pointer is "nothing" but in terms of PC it's address of 0;
    so once I write *(NULL) , how does the PC deal with? I know that *NULL isn't compilable, but how does the PC...
  3. Thread: Updating data

    by RyanC
    Replies
    11
    Views
    220

    Ooop, where is it gone? there's no answer to that...

    Ooop, where is it gone? there's no answer to that question ..really where does it go? not kidding I'm so seriously. so magic is play role? and how switching light related to saving memory? are we...
  4. Thread: Updating data

    by RyanC
    Replies
    11
    Views
    220

    Updating data

    Hi guys; this is last curious question that's really confusing me so much!

    once I write to my compiler

    int x=10;

    x=5;

    x=7;
    then the last value of x is updated and the last updated...
  5. Replies
    5
    Views
    194

    I'm not having specific code, it's something in...

    I'm not having specific code, it's something in general
  6. Replies
    5
    Views
    194

    Cases of empty array

    I'm confusing about something which I'm struggling with.
    sometimes we put this condition sometimes on arrays: (assume we have pointer to array as arr)


    if (arr == NULL || arr.length()==0 ) //...
  7. Replies
    2
    Views
    166

    Printf discussion

    Hi gentlemen ;
    I have last confused question about C programing function which is printf()
    Lets assume I have assigned to printf a string like "Hello World" ; so the Pc save that world into...
  8. Thread: String in C++

    by RyanC
    Replies
    1
    Views
    198

    String in C++

    Hi guys!
    String in C++ is just an object of class, in C we were using

    char * and all fine with that also over C++ support that.
    but what's confusing me, if I'm using string data type as String...
  9. Thread: Logic cyclic

    by RyanC
    Replies
    5
    Views
    177

    didn't understand you explanation, may you...

    didn't understand you explanation, may you illustrate more? thanks alot!
  10. Thread: Logic cyclic

    by RyanC
    Replies
    5
    Views
    177

    Logic cyclic

    Hi guys; Im asking here about the logic than the code; if I have array with size 15 for instance and have two pointers one pointer pointing on index 0 and the other pointer pointing on index 0; at...
  11. Replies
    4
    Views
    299

    Programming Approach

    Hi gentlemen, I'm learning my programming language bymuself (solo) and once I'm writing a code, I really concern alot on the hardware and how the compiler convert my code to the PC, for example i'M...
  12. Thread: Compare concept

    by RyanC
    Replies
    4
    Views
    149

    thanks alot!

    thanks alot!
  13. Thread: Compare concept

    by RyanC
    Replies
    4
    Views
    149

    so if I understand you, I make my compare as my...

    so if I understand you, I make my compare as my assumptions ! and search for any other sort functions that's suitable to my assumption/logic of compare that I built?
  14. Thread: Compare concept

    by RyanC
    Replies
    4
    Views
    149

    Compare concept

    Hi guys; I just passed in the tutrials on c++ regarding to sorting on basis specific pattern and I saw like this:(forget from syntax error because I want to understand the concept behind)
    ...
  15. Thread: Null

    by RyanC
    Replies
    2
    Views
    121

    I know that in the compiler there's macro called...

    I know that in the compiler there's macro called NULL, but how really PC knows that this value can't be deferenced and it's void? ! is it defined in the architecture of the PC that at address 0x00000...
  16. Thread: Null

    by RyanC
    Replies
    2
    Views
    121

    Null

    Hi ! , just last question about NULL pointer and I really appreciate your effort.

    what's still confusing me, is NULL pointer an constant address for every PC ? I mean we know that NULL pointer is...
  17. Replies
    4
    Views
    150

    I know array.end() is the element after the last...

    I know array.end() is the element after the last element, but my question is why I need to reach to the element after last element, I can just reach the last element ..without reaching to the element...
  18. Replies
    4
    Views
    150

    end of the vector

    Hi guys, I'm not understanding why if I want to initiate an array and pass over it, I should reach array.end() and not reaching the last element .. why?! I mean it's not efficient to reach the...
  19. Thread: NULL caseses

    by RyanC
    Replies
    13
    Views
    217

    NULL caseses

    Hi guys, here I'm not asking what's NULL pointer, otherwise I'm asking why I need to consider NULL case once I solve a problem?

    lets assume I have tree and I want to traverse through it, so why in...
  20. Replies
    8
    Views
    306

    I understand that '0' is mapped to integer 48,...

    I understand that '0' is mapped to integer 48, but once again so 48+6=54 is an integer, and because I want it in char because I'm using "+" so my pc automatically mapping 54 as char which is '6'?!
    ...
  21. Replies
    8
    Views
    306

    any help please?

    any help please?
  22. Replies
    8
    Views
    306

    concatenating integer to string

    Hi guys!
    I'm facing a problem that I would to concatenate integer to string, so I did:


    int count=5;
    string tmp= "";
    tmp+=count;

    it's wrong ! because the solution included also '0' in tmp+,...
  23. Thread: String splitting

    by RyanC
    Replies
    3
    Views
    259

    String splitting

    Hi guys,
    I'm wondering if there's in C programming function that I can use for specifying what I want from the string. I mean for example in python if I have str="abcd", and I want just first two...
  24. Replies
    5
    Views
    221

    but there's no C libaray like C++, in C much...

    but there's no C libaray like C++, in C much harder! I'm not allowed to use open source project .. for using hashtable in C
  25. Replies
    5
    Views
    221

    I will read it ! but a lil question I wasn't...

    I will read it ! but a lil question I wasn't specified in my question and sorry for that.

    what I'm facing is hastable in my question and I'M programming it in C, so because there's need for...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4