I am writing some code and I am getting stuck, here is the snippet.
When the print out comes around it just prints out the ASC. I forget how to make it so it will print out either Degrees and Radians. Also...Code:int j = 1; char r[7]; if(j=1) r = "Degrees"; else r = "Radians"; printf("Please enter the angle in %s: \n", r);
I am trying to create a array that has undeclared length. I was wondering how I would go about doing so. Such as
From here I want to be able to control the length of the array. Can anyone help with these two problems I am having.. I havnt programmed in C in a long time!Code:int x []; printf("How big should the array be?");