C Programming and Technical Programming Definition

Q. Difference between strdup and strcpy?

A. Both copy a string. strcpy wants a buffer to copy into. strdup allocates a buffer using malloc(). Unlike strcpy(), strdup() is not specified by ANSI

Read Solution (Total 0)

C Other Question

Q. Describe turbo c compiler?

A. Turbo c is an IDE of c programming language created by Borland. Turbo C 3.0 is based on MS DOS operation system. It is one of the most popular c compilers. It uses 8086 microprocessor which is 16 bit microprocessor. It has 20 address buses and 16 data bus. Its word length is two byte.
Q. What is storage class? What are the different storage classes in C?

A. Storage class is an attribute that changes the behavior of a variable. It controls the lifetime, scope and linkage. The storage classes in c are auto, register, and extern, static, typedef