Answer:
The program to this question can be given as follows:
Program:
#include <stdio.h> //include header file for using basic function
int main() //defining main method
{
int strawsOnCamel=0; //defining integer variable and assign value
for(int i=1;i<=5;i++) //loop for increment integer variable value
{
//code
strawsOnCamel++; //increment value by 1
printf("%d\n", strawsOnCamel); //print value
}
return 0;
}
Output:
1
2
3
4
5
Explanation:
In the C language code above the header file is entered, and a whole variable strawsOnCamel is specified within the main method, which gives a value of 0.
- Then a for loop is defined inside a loop an integer variable i declared that starts from 1 and ends with 5.
- Inside a loop, the strawsOnCamel variable is used that increments its value by 1 and prints its value.
Email client as port 25 is the default port for an email server.
Answer:
#include <stdlib.h>
#include <time.h>
#include<iostream.h>
int main(void) {
int seedVal = 0;
seedVal = 4;
srand(seedVal);
/* Solution*/
cout<<rand() % 149 + 100<<endl;
cout<<rand() % 149 + 100<<endl;
return 0;
}
Explanation:
We start with the required include statements to enable use of srand, rand and time functions. I have also added iostream library to use "cout" function.
After that, the seed is initialized using srand(). And then the two rand functions are called with ranges including and between 100 and 149, and printed out.
I am definitely sure that wpa2 uses Extensible Authentication Protocol (EAP) <span>to obtain a master key, which is in turn used to negotiate for a key that will be used for a session. It provides the transport and usage of key which is generated by EAP methods. It's widely used in p2p (point-to-point) connections and wireless networks.</span>