c program for separate $ and # string

c program for reading $ and # text

c program for reading $ and # string

How to read $apple# string


Program 1:-

c program for separate $ and # string using sscanf (if last text is integer)




Output:-

GPS:GPRS
latitude:23.785921
Valid:ARC
longitude:1303.7886



Program 2:-

c program for separate $ and # string using sscanf (if last text is string)



Output:-

GPS:GPRS
latitude:23.785921
Valid:ARC
longitude:1303.7886
last:love


Program 3:-

c program for separate $ and # string using sscanf (for skipping string)




Output:-

GPS:GPRS
latitude:23.785921
Valid:ARC
longitude:1303.7886
last:


Note:-
The ^ is a escape sequel, [^,] is used to read string and skip comma(,)


Program 4:-

c program for separate $ and # string using switch




GPS:GPRS
latitude:23.78592
Valid:ARC
longitude:1303.7886




Leave reply

Add your comments here

Back to Top