Need help to identify basic wrong code

This is a discussion on Need help to identify basic wrong code within the C Programming forums, part of the General Programming Boards category; What is wrong with this code; (what type of error is it) Int* seed; Seed=4;...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    16

    Need help to identify basic wrong code

    What is wrong with this code; (what type of error is it)

    Int* seed;
    Seed=4;

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Lots and lots, although it's not clear which ones are intended and which ones aren't. Did you mean to capitalize Int and Seed? Those would be compile errors. seed = 4 would then be syntactically correct, but a logic error (in nearly all circumstances).

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    16
    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 09-06-2009, 01:48 PM
  2. basic code help
    By matt37664 in forum C++ Programming
    Replies: 4
    Last Post: 05-20-2006, 01:40 PM
  3. Basic Code
    By MadCow257 in forum Game Programming
    Replies: 6
    Last Post: 03-01-2005, 04:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21