I'm trying to call two methods from main but I'm not sure how to do it.
I know the program isn't completed but I want to get this done first so I can test whether it's working correctly.
Could anyone help me out?
#include <stdio.h>
#include <stdlib.h>
void print_triangle_info(int area(), int perimeter());
void print_square_info(int area(), int perimeter());
static int a = 3;
static int b = 4;
static int c = 5;
int main(void) {
// Tried many different combinations, but doesn't seem to work
print_triangle_info(area, perimeter);
print_square_info(area(), perimeter());
}
void print_triangle_info(int area(), int perimeter()) {
int x = 1/2 * b * c;
}
void print_square_info(int area(), int perimeter()) {
}