I am getting error in the following program. I am unable to figure out why I am not able to store values in the array
main()
{
int A[10];
A = {3,1,2,3,4,1,5,8,9,0};
printArr(A,10);
printf("\n");
BubbleSort(A,10);
printArr(A,10);
printf("\n----------------Bubble Sort Efficiently ---------------------\n");
printf("\n");
A = {3,1,2,3,4,1,5,8,9,0};
BubbleSortEfficient(A,10);
printArr(A,10);
return 0;
}
This is the error I got:
73: error: expected expression before ‘{’ token
80: error: expected expression before ‘{’ token
Please clarify with reason why I am not able to store array elements.