What is the purpose of the va_end macro in <stdarg.h>?
What is the purpose of the va_end macro in <stdarg.h>?A . To calculate the size of the argument list.B . To end the processing of the variable argument list.C . To initialize the argument list pointer to the first variable parameter.D . To retrieve the next argument from the argument...
What is the purpose of the va_start macro in <stdarg.h>?
What is the purpose of the va_start macro in <stdarg.h>?A . To retrieve the next argument from the argument list.B . To calculate the size of the argument list.C . To end the processing of the variable argument list.D . To initialize the argument list pointer to the first variable...
Which protocol is commonly used for network socket programming?
Which protocol is commonly used for network socket programming?A . TCPB . DNSC . SSHD . HTMLView AnswerAnswer: A Explanation: TCP (Transmission Control Protocol) is commonly used for network socket programming.
Which system call is used to close a file descriptor in C programming?
Which system call is used to close a file descriptor in C programming?A . lseek()B . stat()C . dprintf()D . close()View AnswerAnswer: D Explanation: The close () system call is used to close a file descriptor in C programming.
What is the result of the following expression in C: int num1 = 10; int num2 = 3; int result = num1 / num2;
What is the result of the following expression in C: int num1 = 10; int num2 = 3; int result = num1 / num2;A . 3.33B . 4C . 2.33D . 3View AnswerAnswer: D Explanation: Integer division in C truncates the decimal part, so the result of num1 / num2...
What is the data type used in C to represent characters?
What is the data type used in C to represent characters?A . charB . byteC . stringD . intView AnswerAnswer: A Explanation: Characters are represented using the char data type in C.
Which system call is used to listen for incoming connections on a socket?
Which system call is used to listen for incoming connections on a socket?A . accept()B . receive()C . connect()D . listen()View AnswerAnswer: D Explanation: The listen() system call is used to listen for incoming connections on a socket in network socket programming.
The errno variable in C programming is used for which purpose?
The errno variable in C programming is used for which purpose?A . Handling exceptionsB . Managing file permissionsC . Controlling file accessD . Storing the result of the last system call that raised an errorView AnswerAnswer: D Explanation: The errno variable in C programming is used to store the result...
Which system call is used to check the accessibility of a file in C programming?
Which system call is used to check the accessibility of a file in C programming?A . access()B . errnoC . close()D . open()View AnswerAnswer: A Explanation: The access() system call is used to check the accessibility of a file in C programming.
What is the difference between a process and a thread in terms of resource allocation?
What is the difference between a process and a thread in terms of resource allocation?A . Processes and threads have no difference in terms of resource allocation.B . Processes have their own memory space and resources, while threads share the same memory space and resources.C . Processes and threads cannot...