How do I define this?

This is a discussion on How do I define this? within the C Programming forums, part of the General Programming Boards category; Hi all, Can anyone help me with the following definitions: 1. Define an array of 10 integers. 2. Define a ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Unhappy How do I define this?

    Hi all, Can anyone help me with the following definitions:

    1. Define an array of 10 integers.

    2. Define a pointer to float.

    3. Define an array of 20 pointers to char.

    4. Declare a function that converts a string to a float number.

    5. Declare a function that takes one int argument and returns short int.

    6. Declare a structure that has tag car, one int member year and a string member brand.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    They shouldn't, but someone probably will.

  3. #3
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    This makes me sad. You can't attempt even one of your homework/textbook questions? (then why are you trying to be a programmer)

    Best way at getting an answer is show your attempt at solving them, and people will correct you.
    Last edited by Dae; 10-28-2008 at 11:17 PM.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by noob programmer View Post
    Hi all, Can anyone help me with the following definitions:
    Sure we can help. What's your question?

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 11:20 PM
  2. Why?!?
    By p3rry in forum C Programming
    Replies: 3
    Last Post: 01-08-2009, 12:52 PM
  3. size of an integer pointer
    By onebrother in forum C Programming
    Replies: 5
    Last Post: 07-09-2008, 12:49 PM
  4. Please STICKY this- vital to MSVC 6 dev - BASETSD.h
    By VirtualAce in forum Game Programming
    Replies: 11
    Last Post: 03-15-2005, 09:22 AM
  5. float toolbar!
    By c-- in forum Windows Programming
    Replies: 5
    Last Post: 02-04-2003, 09:44 AM

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