LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI, when it chrats a char [] is it allways init to ""

When CVI creats a variable "char strHello[50]"  I always notice that the string (character array) is initilized to empty string.       I know this is not true in othe "C" compliers but is this true in CVI.      Are strings allways initilized to an empty string, even if string is in a structure.
0 Kudos
Message 1 of 2
(2,950 Views)
As far as I know, this is true for global variables (i.e. variables declared at module-level or declared in a include file), while this is not guaranteed for variables local to a function, even if embedded inside a structure.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,945 Views)