Who designed the C programming language and when? - Answers Dennis Ritchie at Bell
Laboratories in the early 1970s.
What languages influenced the design of C? - Answers ALGOL 60 (1960), CPL (Cambridge,
1963), BCPL (Martin Richard, 1967), B (Ken Thompson, 1970).
What is the traditional use of the C programming language? - Answers Systems programming.
What book is referred to as K&R in the context of C programming? - Answers The C
Programming Language by Brian Kernighan and Dennis Ritchie, 2nd Edition.
When was C standardized by ANSI and what is it known as? - Answers Standardized in 1989 and
known as ANSI C.
When was the international standard for C adopted by ANSI and what is it known as? - Answers
In 1990, known as C89.
How was the C standard updated over time? - Answers The standard was updated in 1995 (C95)
and 1999 (C99).
How does C++ relate to C? - Answers C++ extends C to include support for Object Oriented
Programming and other features, but C is not strictly a subset of C++.
What are the elements of a C development environment? - Answers System libraries and
headers, application source and header files, compiler, and linker.
What is required in a C program's structure? - Answers There must be one main function where
execution begins, additional local and external functions, and variables.
How is C different from Java in terms of programming approach and data handling? - Answers
C is procedural with no classes and uses global variables and structs/unions for abstract data
types, while Java is object-oriented with classes and instance variables.
How do you compile and run a simple C program using gcc? - Answers Compile using gcc
hello.c -o hello and run with ./hello.
What is GCC and its significance? - Answers GCC is the GNU Compiler Collection, used for
compiling C programs and other major programming languages.
What are some features of GCC? - Answers Language-independence and code optimization with
various optimization levels.
What is the learning environment for C and Assembly in the course? - Answers Students work
on TRU's Linux server using provided username and password, and connect remotely to the
server.
, What is the purpose of standard headers in C? - Answers To provide function prototypes, data
types, macros, inline functions, and other common declarations.
What is the purpose of the C preprocessor (cpp)? - Answers To insert common definitions into
source files and perform other pre-processing tasks.
Give examples of some C standard header files and their uses. - Answers -stdio.h for file and
console I/O
-stdlib.h for common utility functions
-string.h for string and byte manipulation
-ctype.h for character types
-errno.h for system error reporting
-math.h for math functions
-signal.h for signal handling
-stdint.h for standard integer types
-time.h for time-related functions.
Compare malloc and calloc functions in C. - Answers -malloc allocates size bytes of memory.
-calloc allocates a region to hold n elements of n size.
-malloc syntax: void *malloc(size_in_bytes)