Answer:
The answer to this question is given below in the explanation section.
Explanation:
The question is about writing a C program that prints the initial letter of Name Ferdous.
Therefore, below is the given complete code that prints the first letter of the name Ferdous.
<em>#include <stdio.h> </em><em>/*import strandard input/output library*/</em>
<em>#include<string.h></em><em> /*import string library to handle string type of data*/</em>
<em> </em>
<em>int main(void) </em><em> /*started the program execution- program entry point*/</em>
<em>{ </em>
<em>char *str = "Firdous";</em><em> /*char to pointer str contains string "Firdous"*/</em>
<em>int len = strlen(str); </em><em> /*this line of code is not neccary, but if you print other character for example last character of the name then you can use it*/</em>
<em>printf("First Letter of the name is: %c", str[0]); </em><em> /*print first letter of the name*/</em>
<em>} </em><em> /**program terminated*/</em>
Select all answers for #4
Answer:
If it is just one letter, use a character, but if it is more than one letter, use a string (string of characters)
Answer:
Encapsulation
Explanation:
There are seven layers in the OSI network model. These layers are, application, presentation, session, transport, network, data-link and physical layer.
Each layer of the OSI model has a PDU or protocol data unit. These PDUs are form by encapsulation.
The application, presentation and session data. When it moves to the transport layer, it is encapsulated within the transport header. This new pdu is called segment.
This process continues in network and data-link to give packet and frame PDUs respectively.