[Solved] c code for converting a 1d data into 3d in c
Your logic seems to be okay. The problem is with the declaration of the 1D and 3D arrays. 1) There id no datatype as byte in C 2) new is not a part of C. You cannot allocate memory using new Try the following changes for your code to work int main() { int x; … Read more