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.

January 20, 2025 No Comments READ MORE +

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.

January 19, 2025 No Comments READ MORE +