Advertisement
Guest User

Untitled

a guest
Jun 4th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. struct test {
  4.     int test1;
  5.     int test2;
  6.     int test3;
  7. } myTests;
  8.  
  9. void initializeStruct()
  10. {
  11.     myTests.test1 = 1;
  12.     myTests.test2 = 2;
  13.     myTests.test3 = 3;
  14. }
  15.  
  16. int main (void) {
  17.    
  18.     initializeStruct();
  19.    printf("Hallo Welt\n");
  20.    return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement