Results 1 to 15 of 27

Threaded View

  1. #1
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical

    Interview Question of the Day (IQOD) #1

    I like Why06's idea of the 'error of the day' so I figured i'd post some of the questions I have asked people while interviewing them for C++ Software Developer Positions.

    These questions are usually written on a whiteboard (or printed out) and thus are meant to be answered WITHOUT the help of a compiler in an interview! So just read the code, don't copy/paste/build/run and just figure out what it does by reading.

    I suggest you answer in a 'white font' so that others don't immediately see your answers


    IQOD #1:
    Consider the following program snippet:
    Code:
    #define   ABC    20
    #define   XYZ    10
    #define   XXX    ABC-XYZ
    
    void main()
    {
           int a;
           a = XXX * 10;
           printf("%d\n",a);
    }
    Question: What output is generated / is the value of 'a'?
    Last edited by B1ackAnge1; 09-17-2009 at 07:10 PM.

Similar Threads

  1. Word/Phrase of the day!
    By Dave84311 in forum General
    Replies: 77
    Last Post: 01-11-2009, 02:37 PM
  2. GenX New Hack By End Of The Day
    By GenX in forum WarRock - International Hacks
    Replies: 42
    Last Post: 07-21-2008, 08:28 PM
  3. Riddle Of The Day!
    By Snipified4 in forum General
    Replies: 22
    Last Post: 05-22-2008, 08:39 AM
  4. Question to the opposite sex!
    By nukeist_ in forum Spammers Corner
    Replies: 6
    Last Post: 01-15-2008, 10:24 AM

Tags for this Thread