-main (argc, argv, envp)
- int argc;
- char **argv;
- char **envp;
+int main (int argc, char **argv, char **envp)
{
extern void dummy();
dummy();
+ return 0;
+
}
/* We put main() right up front so its line number doesn't keep changing. */
float v_float;
double v_double;
-
/*
* Now some derived types, which are arrays, functions-returning,
* pointers, structures, unions, and enumerations.
float v_float_array[2];
double v_double_array[2];
+/**** initialized array *******/
+
+int v_int_array_init[2] = { 10, 20 };
+
/**** pointers *******/
char *v_char_pointer;
enum colors {red, green, blue} color;
enum cars {chevy, ford, porsche} clunker;
+struct t_struct *null_t_struct;
void dummy()
{
v_float = 100.0;
v_double = 200.0;
-
-
v_char_array[0] = v_char;
v_signed_char_array[0] = v_signed_char;
v_unsigned_char_array[0] = v_unsigned_char;
v_float_array[0] = v_float;
v_double_array[0] = v_double;
-
v_char_pointer = &v_char;
v_signed_char_pointer = &v_signed_char;
v_unsigned_char_pointer = &v_unsigned_char;