This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSTUDIO: Declaring variables inside loops

Part Number: CCSTUDIO

Hi,

Good Day. I have a customer who is working with CCS. Please see below his query for your reference. Thank you very much.

I am using CCS_10.3.1 and noticed that it does not support feature such as declaring variables inside of loops.  Following is an example:

for(int i = 0; i < 4; i++)

{

      abc = "true";

}

if I declare int i outside of the for loop then the compiler will work.  This has caused a lot of trouble because we are porting some code from other compilers which support this feature.  I am wondering if you have considered adding the feature to CCS.

Best Regards,

Ray Vincent