Hi,
I am trying to store a string of binary into 2D array but I keep getting "invalid intilizer error".
My code is:Could someone please help I am driving my self crazy.Code:#include <stdio.h> char store; char ascitobinary(); int main(void){ char string1[][] =store; } char ascitobinary(){ char x ; int y; printf("Input a word to transmit: " ); scanf("%c",&x); for(y = 0; y < sizeof(char) * 15; y++){ store=(( x & (1 << y) ) ? '1' : '0' ); puts(""); } return 0; }