/*
Program to demonstrate arrays with function in which the array elements are passed as function parameters
*/
#include <stdio.h>
#include <conio.h>
void display(int); //function prototype
int main()
{
int a[10],i;
for(i=0;i<10;i++) //getting the array elements
{
scanf("%d",&a[i]);
}
for(i=0;i<10;i++)
display(a[i]); //call the function inside the loop, this function called for 10 times
getch();
return 0;
}void display(int a) //function implementation to print the elements, here the parameter is an integer only(means we are passing the array elements)
{
printf("%d",a);
}
In this post, we are going to see how to install ns-3.36.1 in Ubuntu 22.04. You can follow the video for complete details Tools used in this simulation: NS3 version ns-3.36.1 OS Used: Ubuntu 22.04 LTS Installation of NS3 (ns-3.36.1) There are some changes in the ns3 installation procedure and the dependencies. So open a terminal and issue the following commands Step 1: Prerequisites $ sudo apt update In the following packages, all the required dependencies are taken care and you can install all these packages for the complete use of ns3. $ sudo apt install g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libc6-dev libc6-dev-i386 libc...
Comments
Post a Comment