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 : Explain the common uses of XML Explain

    Explain the common uses of XML.

  • Q : Microsoft Access I have attached a

    I have attached a database and a PDF with 5 questions. I need the 5 questions answered with 5 queries in the database. Question 3 needs a crosstab query. All the questions require the proper join.

  • Q : Explain Inheritance hierarchy

    Inheritance hierarchy: The relationship among super-classes and sub-classes is termed as an inheritance hierarchy. The single inheritance of classes means that each and every class has simply a single `parent' class and that Object class is the eventu

  • Q : Explain the term soft real-time Explain

    Explain the term soft real-time.

  • Q : Index value of the initial element in

    Write the index value of the initial element in an array?

  • Q : What is BLAST in program model checking

    What is BLAST in program model checking: The abbreviation is Berkeley Lazy Abstraction Software Verification Tool (BLAST) is a software model checker for C programs. The main goal of BLAST (BLAST website) is to be able to check that software satisfies

  • Q : Function prototypes Function prototypes

    Function prototypes: Function declaration which specifies the function name, return type and parameter list of the function. Syntax: return_type function_name(type var1, type var2,…

  • Q : Define Byte code Byte code : Java

    Byte code: Java source files are converted by a compiler into bytecodes that is, the instruction set of the Java Virtual Machine (JVM). The Bytecodes are stored in the .class files.

  • Q : Limit the Use of Pre-processor

    Limit the Use of Pre-processor Directives: The C pre-processor is powerful, but unrestricted use of it can lead to code that is hard to understand and analyze. Limit its use to inclusion of header files and simple macro definitions. Avoid features suc

©TutorsGlobe All rights reserved 2022-2023.