could you please tell me if theres something wrong with the code ,if not ,may i know why the control is not going to the code below sprintf
#include "stdio.h"
float x=3.795;
volatile char dummy_data[100]="\r\nDummy Data Test String";
void main(void)
{
int j;
j=sprintf(dummy_data,"\r\nVoltage on Pin no. 2 is %f",x);
}