Skip to content

Instantly share code, notes, and snippets.

View iamirulofficial's full-sized avatar
😊
Available

Amirul Islam iamirulofficial

😊
Available
View GitHub Profile
#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);
#include <stdio.h>
#include <ctype.h>
#define SIZE 50
int s[SIZE];
int top=-1;
int flag=0;
int pop()
{
return(s[top--]);
#!/bin/bash
#Program: execute simple command
echo "Today's date: `date`"
#!/bin/bash/
#Program: execute simple commands
echo "This month calender: \n"
cal feb 2019
echo "My shell is : $SHELL"
#!/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
#!/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
#!/bin/bash
#Program: using if and else
if grep "$1"$2
then
echo "pattern found"
else
echo "pattern not found"
fi
#include <stdio.h>
#include<stdlib.h>
#define MAX 5
void insert();
void delete();
void display();
int q[MAX];
int rear = - 1;
int front = - 1;
<!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;
https://www.instagram.com/itsme_aadii/
https://www.facebook.com/aadi.rizwan.3
https://twitter.com/logKyaKhenge