User Profile

Collapse

Profile Sidebar

Collapse
AnilM823
AnilM823
Last Activity: Feb 7 '08, 09:00 PM
Joined: Jan 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AnilM823
    replied to printing an int in C
    in C
    Got it, thanks for the clarification
    See more | Go to post

    Leave a comment:


  • AnilM823
    replied to printing an int in C
    in C
    Thanks, make sense. But to follow up on this concept:

    So for example, let's say we've got a local variable declared as an int (not yet assigned any value to it). So now we have 4 bytes allocated on the stack (on most machines). Actually let's assume it's an unsigned int. So I'm assuming whatever garbage value is in those 4 bytes before initialization must still be constrained to the 2^32 limit for the unsigned int, correct?
    See more | Go to post

    Leave a comment:


  • AnilM823
    started a topic printing an int in C
    in C

    printing an int in C

    ok.. simple question here: if you're to print out an integer before giving it a value, it prints out some huge absurd value. Where is this value coming from?

    For example, if I were to do:

    int i;
    print ("i = %d", i);

    it would print out some huge value like 1073828704. where is this value coming from? I'm not printing out the address of the variable or anything, so...?
    See more | Go to post

  • AnilM823
    replied to Vertical centering for IE7
    Nevermind, got it to work
    See more | Go to post

    Leave a comment:


  • AnilM823
    started a topic Vertical centering for IE7

    Vertical centering for IE7

    So I'm sure this has to do with some newly introduced bug in IE7, but I cannot get my container class to center vertically! (only in IE7, all other browsers work perfectly)

    My CSS is given below. Any thoughts on this would be much appreciated!

    div.container {
    width:800px;
    margin: 0px auto;
    text-align:center;
    }
    See more | Go to post

  • AnilM823
    replied to Print * code
    in C
    As mentioned above, simply sending you the code won't help. Have you attempted this?

    As a hint, try using a for loop, with a while loop nested inside (two counter variables)...
    See more | Go to post

    Leave a comment:


  • AnilM823
    replied to Little help about pointer
    in C
    As you mentioned, you want to store the address. Your *temp pointer is not initialized properly. It needs to have a valid address to point to first. In other words, your assignment should be:

    temp = ...

    NOT

    *temp = ...
    See more | Go to post

    Leave a comment:


  • AnilM823
    replied to Word wrapping in php
    in PHP
    Interesting suggestion. I'll give it a shot, thanks
    See more | Go to post

    Leave a comment:


  • AnilM823
    started a topic Word wrapping in php
    in PHP

    Word wrapping in php

    Hi all,

    I'm working on designing a forum. I'm using PHP, with a mysql database, displaying the user-input results in a formatted table. Pretty standard. My questions concerns word wrapping. Normally, when the data reached the end of the table, it'll wrap to the next line. However, when people post links, the link itself will not wrap around (as it is all basically one word) and will cut right through the table's border, completely...
    See more | Go to post
No activity results to display
Show More
Working...