Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 10 months ago.
problem in printing string ....
Hello ,
I am facing problem in printing string though it was printing before nicwly, please modify my program if i am wrong some where.
include "mbed.h"
Serial pc(USBTX, USBRX); tx, rx
int main() {
char stru[60]; pc.printf("\n\rHello World!\n"); r=65;
for(int i=0;i<30;i++) stru[i]= i; wait(0.5); pc.printf(" \n\r %s \n " , stru);
}