I got output as 5 after solving
"The static storage class is used to declare an identifier that is a local variable either to a function or a file and that exists and retains its value after control passes from where it was declared. This storage class has a duration that is permanent. A variable declared of this class retains its value from one call of the function to the next. The scope is local. A variable...
User Profile
Collapse
-
create a directory/folder using c in visual studio
C-> Visual studio 2010-> windows 7
can any one explain me a sample code ,how to create a directory / folder.( to browse/save my files to a directory.) how to specify the path?
I googled , but i cant able to find appropriate as it is showing all in the C#, C++ , objective C. But not in C.
Here i am writing a sample program to my POS device .problem here is it is not taking mkdir(direct/dir.h... -
parvathireddy replied to Can i use flush method in C programming -visual studio . explain me with a syntax/in CThanks Banfa fr replying .
I actually wanted to clear the existing buffer and to initialise the new buffer in that place. but we tried with different methods. But we are getting two problems.
1. sometimes getting garbage/junk data
2. Sometimes it is overlapping / appending
thanks in advanceLeave a comment:
-
Thank you, Banfa .
But we tried with that one and its nt working here. is there any alternative apart from this. I am using visual studio 2010 IDELeave a comment:
-
How to convert bytes to string in C programming
could anyone explain me how to convert bytes of data to string using c programming , would be very thankful. I searched but i didnt get appropriate one .
Example : 112131(bytes) to string ("some sample") -
parvathireddy started a topic Can i use flush method in C programming -visual studio . explain me with a syntax/in CCan i use flush method in C programming -visual studio . explain me with a syntax/
Can i use flush method in C programming . my IDE is Visual studio 2010.
I want to clear the buffer and again i need to re initialise the buffer and to store a new data
thanks in advance -
getting problem in receiving data from serial port
I need to receive data from pc to Pos using serial port RS 232 . I am receiving data but garbage values and overlapping is occuring.
// data received //
Code:ret=(PortRecvs(0,buff,sizeof(buff)-1,1000)<0);
//********Explain me from here****////
// comparing the data//
Code:if(ret<0) { ScrCls(); Lcdprintf("Receive
No activity results to display
Show More
Leave a comment: