int*, &var1 (more about this later)struct
struct Books { char title[50]; char author[50]; int book_id;} bookenum
enum enum_name{int_const1, int_const2, int_const3, …. int_constN};union
union Data { int i; float f; char str[20];} data;ANSEL = 0; // Configure AN pins as digital I/O
ANSELH = 0;
C1ON_bit = 0; // Disable comparators
C2ON_bit = 0;
// 76543210
TRISC = 0b10000000; // PORTC is input
UART1_Init(9600); // Initialize UART PROTO
...
ANSELA = 0; // Configure AN pins as digital I/O
ANSELB = 0;
ANSELC = 0;
TRISB = 0;
#import "MyClass.h"
@implementation MyClass
- (id)initWithString:(NSString *)aName
{
// code goes here
}
+ (MyClass *)myClassWithString:(NSString *)aName
{
// code goes here
}
@end
Throughout this lab we have been using gcc or `the GNU Compiler Collection'. The GNU is a recursive acronym: ‘GNU’s Not Unix!'
Supports:
#include <stdio.h>
int main( int argc, char *argv[] ) {
printf("Program name %s\n", argv[0]);
if( argc == 2 ) {
printf("The argument supplied is %s\n", argv[1]);
}
else if( argc > 2 ) {
printf("Too many arguments supplied.\n");
}
else {
printf("One argument expected.\n");
}
}
<img width=900 src="../../figures/c_compile.png">