Which of the following obsolete yet valid language elements are used for trigraphs in C programming?
Which of the following obsolete yet valid language elements are used for trigraphs in C programming?A . ???B . ??!C . ?=+D . ??/View AnswerAnswer: A Explanation: Trigraphs in C programming are represented by three consecutive question marks, such as the "???" trigraph.
What will be the output of the following code snippet in C: int num = 5; printf("%d", num++);
What will be the output of the following code snippet in C: int num = 5; printf("%d", num++);A . 4B . 6C . 5D . UndefinedView AnswerAnswer: C Explanation: The postfix increment operator (num++) increments the value of num after the current value is used in the printf statement.
In network socket programming, which function is used to establish a connection with a remote server?
In network socket programming, which function is used to establish a connection with a remote server?A . bind()B . connect()C . listen()D . accept()View AnswerAnswer: B Explanation: The connect() function is used to establish a connection with a remote server in network socket programming.