mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-03-14 10:50:05 +01:00
[SPCA] Fixes a few errors
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
int main( int argc, char *argv[] ) {
|
||||
int data[ 10 ]; // Initialize array of 10 integers
|
||||
data[ 5 ] = 5; // element 5 is now 5
|
||||
*data = 10; // element 0 is now 5
|
||||
*data = 10; // element 0 is now 10
|
||||
printf( "%d\n", data[ 0 ] ); // print element 0 (prints 10)
|
||||
printf( "%d\n", *data ); // equivalent as above
|
||||
printf( "%d\n", data[ 5 ] ); // print element 5 (prints 5)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#ifndef MYLIB_H
|
||||
#define MYLIB_H
|
||||
|
||||
// all code goes now here
|
||||
#endif
|
||||
Reference in New Issue
Block a user