--%>

Function of STR and LPSTR

 Explain what is the function of STR and LPSTR?

E

Expert

Verified

STR is a datatype which has the storage allocation in place as well as it consists of the strings that are treated as an array.

a. They use pointer to point to the objects which is simple character.

b. The variable that is used with the data type is “sz” as it is a zero-terminated string that is a string which ends with a NULL character.

c. LPSTR is defined as Long Pointer to STR (string) and it is given as: #define STR * LPSTR;

d. This can be used to point to the string objects and it can also explicitly define the ASCII code rather than Unicode.

e. The variables are prefixed with “lpsz” and it involves the long pointer to the string which having zero-terminated.

   Related Questions in Programming Languages

  • Q : Simple Sorting Program in C Shell

    Assignment: Sorting You will write a simple sorting program. This program should be invoked as follows: shell% ./fastsort -i inputfile -o outputfile

  • Q : How Does Run time data handled into QTP

    How Does Run time data i.e. Parameterization is handled within QTP?

  • Q : Define the term Blank final variable

    Blank final variable: A final variable which is not initialized as portion of its declaration. This variable should be initialized in either an instance initialization block or every of the constructors for its class before it is employed. A static bl

  • Q : What are the valid and invalid XHTML

    What are the valid and invalid XHTML element names?

  • Q : Define the term Interface inheritance

    Interface inheritance: Whenever a class implements an interface, the interface inheritance relationship exists among them. The class inherits no implementation from interface, just method signatures and static variables. It is as well possible for one

  • Q : Define the term Dynamic type Define the

    Define the term Dynamic type: This type of an object is the name of the class employed to construct it.

  • Q : What is Binary operator Binary operator

    Binary operator: It is an operator taking two operands. Java has numerous binary operators, like the arithmetic operators +, -, *, / and %, and the Boolean operators &&, || and ^, among others.

  • Q : Define Continue statement Continue

    Continue statement: A statement which might only be employed within the body of a loop. In case of a while loop or do loop, control passes instantly to the loop's terminating test. In case of a for loop, the control passes to the post-body update expr

  • Q : What is an Import statement Import

    Import statement: A statement which makes the names of one or more interfaces or classes accessible in a different package from the one in which they are stated. Import statements pursue any package declaration {package!declaration}, and precede any i

  • Q : Installation of Symbian SIS file to

    I am not capable to install Symbian SIS file to Symbian OS v.9.x tool? What must I do?