This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int stack[100],choice,n,top,i,x; | |
void push(); | |
void pop(); | |
void display(); | |
int main(){ | |
top=-1; | |
printf("\nEnter the size of the stack,maximum 100"); | |
scanf("%d",&n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <ctype.h> | |
#define SIZE 50 | |
int s[SIZE]; | |
int top=-1; | |
int flag=0; | |
int pop() | |
{ | |
return(s[top--]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Program: execute simple command | |
echo "Today's date: `date`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash/ | |
#Program: execute simple commands | |
echo "This month calender: \n" | |
cal feb 2019 | |
echo "My shell is : $SHELL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Program: Interactive version -uses read to take two inputs | |
echo "Enter the pattern to be searched: \n" | |
read pname | |
echo "Enter the file to be used: \n" | |
read filename | |
echo "Searching for $pname from file $filename" | |
grep "$pname" $filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Program: using command line arguments | |
echo "Program name: $0 \n The number of arguments specified is $# \n the arguments are | |
$*" | |
grep "$1" $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Program: using if and else | |
if grep "$1"$2 | |
then | |
echo "pattern found" | |
else | |
echo "pattern not found" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include<stdlib.h> | |
#define MAX 5 | |
void insert(); | |
void delete(); | |
void display(); | |
int q[MAX]; | |
int rear = - 1; | |
int front = - 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Amirul | Islam</title> | |
<meta charset="UTF-8"> | |
<link href='http://fonts.googleapis.com/css?family=Rokkitt:400,700|Lato:400,300' rel='stylesheet' type='text/css'> | |
<style> | |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video { | |
border:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.instagram.com/itsme_aadii/ | |
https://www.facebook.com/aadi.rizwan.3 | |
https://twitter.com/logKyaKhenge |
OlderNewer