Hi all, this problem doesn't involve strings.
I have written the following:
However this returns an error stating: 'incompatible types in assignment'?Code:#include <stdio.h> int main() { int age[4]; int same_age[4]; age[0]=23; age[1]=34; age[2]=65; age[3]=74; same_age=age; printf("%d\n", same_age[0]); printf("%d\n", same_age[1]); printf("%d\n", same_age[2]); printf("%d\n", same_age[3]); return 0; }
Thanks