Search:

Type: Posts; User: Inneart

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    4,957

    Chop as in take. So my examples are correcto?

    Chop as in take.

    So my examples are correcto?
  2. Replies
    15
    Views
    2,974

    Sorry for being an amateur but I thought a long...

    Sorry for being an amateur but I thought a long int is capable of holding up to 32-bit results? So why is a 16-but result defaulting the process?
  3. Replies
    15
    Views
    2,974

    I see. I didn't know that a simple expression is...

    I see. I didn't know that a simple expression is so complicated. So as long as 1000*1000 is > int's range, even if I declare c as long int the compiler will 'jammed' at the part when 1000 * 1000 =...
  4. Replies
    14
    Views
    4,957

    So in C language, variables are always passed by...

    So in C language, variables are always passed by duplicating its value?

    C = 5
    Pass C to a F(x)
    C of F(x) duplicates value of C

    And if I want it to modify the original C,

    C = 5
    Pass &C to...
  5. Replies
    15
    Views
    2,974

    Hmm. So you guys are saying irregardless of the...

    Hmm. So you guys are saying irregardless of the fact that c is being declared as long int, as long as a and b are just int, int multiply by int will force c to adopt int class?
  6. Replies
    15
    Views
    2,974

    It's a dumb exam question. Int 32,767. Long...

    It's a dumb exam question.

    Int 32,767.
    Long Int at least 4 billion for International ASCII Standard.

    So. Why why?! What a lame exam qn.
  7. Replies
    14
    Views
    4,957

    Hi. I dont understand why. I thought variables...

    Hi. I dont understand why. I thought variables could be either passed by Value/Reference?

    Reference - Taking reference from original variable's address
    Value - Taking concurrent value of...
  8. Replies
    15
    Views
    2,974

    Theory QN Help!

    Hi All,

    This may seem trivial but I have totally no idea.

    Question: Why does the following code fragment fail to work?




    int a = 1000, b = 1000;
  9. HELP > How to remove element in a Structure Array

    Hi All,

    I'm doing a project creating a 'Library of Books'.

    How should I go about 'removing' a book from my current library if let's say, a user has 'borrowed' a book?

    Many thanks!!
  10. No one can help? :(

    No one can help? :(
  11. HELP > Identify substring partial occurrences in Main String

    Hi Folks,

    This is the last part of an assignment that I was given.

    Suppose you have a substring 'ABCDE...'

    and another main string 'ABCDEFGHIJKLMNO......'

    How do you identify ALL...
  12. Replies
    13
    Views
    1,818

    Thanks guys. Really appreciated it.

    Thanks guys. Really appreciated it.
  13. Replies
    13
    Views
    1,818

    Thanks laserlight. You are a great help. Bet you...

    Thanks laserlight. You are a great help. Bet you got A+ for all your programming modules. Thanks a mil!
  14. Replies
    13
    Views
    1,818

    Is this it? Hehe. for(i=0;...

    Is this it? Hehe.



    for(i=0; i<strlen(text)+1; i++)
    {
    for(j=0; j<i; j++)
    {
    printf("%c", text[j]);
    }
  15. Replies
    13
    Views
    1,818

    Mhmm... 2 loops... for(i=0;...

    Mhmm... 2 loops...



    for(i=0; i<strlen(text); i++)
    {
    for(j=0; j<strlen(text); j++)
    {
    printf("%c\n", text[j])
    }
  16. Replies
    13
    Views
    1,818

    I already thought of a simple loop: ...

    I already thought of a simple loop:



    for(i=0; i<strlen(text); i++)
    {
    printf("%s\n", text[i]);
    }

    But it doesn't work.
  17. Replies
    13
    Views
    1,818

    HELP > Printing String Gradually!

    Hi Folks,

    I'm an undergrad at National University of Singapore. Just have a slight trouble with my current assignment.

    How do you gradually print a string say "ABCDEFGH", and you want it to...
Results 1 to 17 of 17