





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






typedef struct { char first[20]; char last[20]; int score; char grade; } Student;
Student stu1, stu2;
int silly(int n) { if(n <= 0) return 1; else if(n%2 == 0) return n; else return silly(n - 3); }
if( /some condition/ ) /* make recursive call */ ;
#include <string.h> #include <stdlib.h>
char first[20], last[20]; char name[] = "Burdell, George P."; strncpy(last, name, 2); last[2] = '\0'; printf("%s", last); printf("%s\n", strcpy(first, name + 9));
strncpy(last, name, 7); last[7] = '\0'; first[7] = '\0'; printf("%s%s\n", first, last);
BuGeorge P. George Burdell
#include <stdio.h>
int main() { char str[80];
char *sptr = gets(&str); // get a string from the user
// your code here
// your code here
// your code here
// your code here
// your code here
int main() { matrix m = buildRandSquarerMatrix(); // builds a square matrix
free(m); // frees the memory for m }