Thread: Problem With Typedef Struct

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    32

    Problem With Typedef Struct

    I have declared a two variable structure that has 2 long long integers.
    After declaring a variable "pair", of the structure Pair, I am able to
    write a value to one of the variables, "first", but not to the second
    variable, "snd".
    "first", though a long long was happy to receive the value of an int
    variable.
    "snd", though a long long will not receive any value at all, neither direct,
    "pair.snd = 10;" nor "pair.snd = Length;"
    The output for "pair.snd" is always zero.

    I really have missed something important
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. typedef struct vs struct declaration error in code
    By shaswat in forum C Programming
    Replies: 3
    Last Post: 07-25-2016, 06:45 AM
  2. typedef struct problem
    By jarrix in forum C Programming
    Replies: 2
    Last Post: 01-29-2011, 04:22 PM
  3. differences between struct and typedef struct
    By stanlvw in forum C Programming
    Replies: 1
    Last Post: 07-22-2008, 03:28 PM
  4. Problem with typedef struct
    By cprogrammer_18 in forum C Programming
    Replies: 2
    Last Post: 02-03-2006, 06:01 AM
  5. another 'typedef struct' problem ?
    By thjoon in forum C Programming
    Replies: 3
    Last Post: 11-18-2002, 08:26 AM

Tags for this Thread