Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C question

Name: Anonymous 2009-05-26 12:38

What's the difference between writing int frozen() and int frozen(void)?

Name: Anonymous 2009-05-26 12:55

Okay, one more thing;

#include <stdio.h>
#include <stdlib.h>

struct foo
{
  char fooc[20];
  int  fooi;
};

main()
{
  foo *bar;
  bar = (struct foo *) malloc(sizeof(foo));
  bar->fooi = 16;
  bar->fooc = "ANUX";
}



Why doesn't the bar->fooc assignment work? Sorry, I'm new to C.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List