Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32
  1. #21
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1

    Turbo C is an IDE developed by borland to write C programming language (DOS). way back late 1990's we use to refer C as TC or Turbo C, bcoz the IDE was famous and it was the easiest way to get start in writing Turbo C... I mean "C" hehehe... sorry. ^_^

  2. #22
    Unsa pud difference sa pointer ug reference??

  3. #23
    @MarkCuering

    thanks for the clarification...

    and thanks pod sa mga tips...


    pasensya karon lang ko nakareply kay na busy gamay with school activities...


    gusto lang ko magkat-on sa previous programming langguage...

    we cannot get to where we are going if we don't know where we came from.....


    hehehehe

    saonz... bahalag wrong mistake sayop grammar.... hehehehe

  4. #24
    Quote Originally Posted by mastertroll2 View Post
    Unsa pud difference sa pointer ug reference??
    A pointer variable holds the memory address of the object or type it points to.
    Example:
    int count; // declare variable count
    int *pCount; // declare int pointer variable
    count = 1; // initialize
    pCount = &count; // assign the address of count to pCount
    *pCount++; // increment count indirectly

    A reference variable act as an alias of the variable it refers to.
    Example:
    int count = 1; // declare integer variable count
    int &cRef = count; // create cRef as an alias for count
    cRef++; // increment count (using its alias cRef)

  5. #25
    @nullpointer


    good tip...

    kalimot na ko ana da... wala man gud to maexplore pag c++ namo before.... balik ko ana ug kat-on...

  6. #26
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Okay... here's a lesson for today regarding C. Which is still up to now someone come to me and ask what the heck happen in my code. believe me whether you will find yourself working 5 to 10 years in C without taking a serious understanding on this will condemn you to repeat this mistakes...


    1. What's wrong on the code below?
    PHP Code:
    int *pVar1;
    pVar 0
    *pVar1 32676
    2. What about this one? still in pointers.

    PHP Code:
     *= (char *) malloc(100);  
     *
    'y'
    3. They've been teaching us that C++ is superset of C...which I guess not TRUE!... like the code below,

    PHP Code:
    int *malloc(sizeof(int) * 1000); 
    it is valid in C then why isn't valid in C++? how would I write so it would be valid in both C and C++?

    This is just one of the reason why the core dll's in microsoft still in C language...and there's no way they can make it in C++. Even in embedded devices... just think about "void *" Why,When,Where and How...


    4.Are expressions of var_array and *var _array same in array of integers? *sigh*

    5. lastly,


    PHP Code:
    int main() {

        
    /*NOTE 1: We defined here local variables */

        
    int var_intvar_array[2];
                 
         
    /* NOTE 2: defined our pointers the one will hold the int the other one holds the array*/

        
    int *p1, *p2;

        
    /* NOTE 3: Finally! p1 points to our variable Integer */

        
    p1 = &var_int;

        
    /* NOTE 4: Finally! p2 points to our variable Array at index 0 */

        
    p2 = &var_array[0];

        
    /* Now let's assign some values */

        
    *p1 3;          /* var_int now is equal to 3... please see NOTE: 3 */


        
    *++(p2) = 1;     /* Can you determine what happen now in our var_array???? where the int "1" being stored... See NOTE 4 */

        
    return 0;

    Having lack knowledge of "operator precedence rules" and "dereference operator" in C or C++ would let anyone confuse! This topic is usually in Chapter 1 in your book... which surely be forgetten when you reach CLASSES & OBJECTS...I was been asked way back in my interview where I was not allowed to run the code since it is clearly readable... I haven't answer... how lame I was.... I was thinking that they would ask me some few algorithms or solve some problem... I was confident enough since I know how to capture exceptions or hit F1 in any IDE's and scan proper arguments.... well, I Learn my lessons, which I guess worth to be shared.

  7. #27
    haha...medyo nkalimot nko ani....thanks bro...worth sharing...

  8. #28
    @MarkCuering


    Salamat kaayo... thanks for sharing ... dako na kaayo na nga tabang.....

  9. #29
    cge sir apil ko ani gusto pud ko makakat on ani nga assembly language..asa man ato room dapit or sites

  10. #30

  11.    Advertisement

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

 
  1. Looking For: someone who can teach me 'basic dressmaking'
    By melissa_o in forum Specialty Services
    Replies: 2
    Last Post: 04-25-2018, 01:44 AM
  2. For Hire: Somebody who can teach me seo
    By johnnski in forum Jobs
    Replies: 13
    Last Post: 04-01-2011, 11:19 PM
  3. Who can give me a lot of advices.....?
    By ramde_ispunk@yahoo.com in forum Fitness & Health
    Replies: 23
    Last Post: 02-11-2011, 02:25 AM
  4. anyone who can teach me photography??...
    By NiveK in forum Sports & Recreation
    Replies: 0
    Last Post: 01-30-2008, 06:34 PM
  5. Replies: 7
    Last Post: 12-30-2006, 09:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top