Why this program is not compile in dev c++ compiler? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why this program is not compile in dev c++ compiler?

#include <stdio.h> void * square (const void *num); int main() { int x, sq_int; x = 6; sq_int = square(&x); printf("%d squared is %d\n", x, sq_int); return 0; } void* square (const void *num) { static int result; result = (*(int *)num) * (*(int *)num); return(result); }

26th May 2020, 9:59 AM
Saurabh Yadav
Saurabh Yadav - avatar
0 Answers