Author: ayesha

Data Structure

Linked List implementation in C

Linked List is a linear data structure and the elements are linked using pointers,They can be used to implement several other common abstract data types: stacks, queues, associative arrays though it is not uncommon to implement the other data structures directly without using a list as the basis of implementation.  Here in this code we […]

Read More
C Programming
Challenging problems

Zero Duplicates

Write a program that will read in a list of numbers and will then print out the same list except numbers that have already been printed will be printed as a zero instead. Sample Input : 4 3 2 1 4 Sample Output: 3 2 1 0 code: #include<stdio.h> int main() { int n,i,j; int […]

Read More
C Programming
Challenging problems

Panagram in c

#include<stdio.h> #include<conio.h> #include<string.h> int main() { int x[26]={0},i,n; char c[100]; clrscr(); gets(c); n=strlen(c); for(i=0;i<n;i++) { if(c[i]>=65&&c[i]<=90) x[c[i]-26]++; else if(c[i]>=97&&c[i]<=122) x[c[i]-97]++; } for(i=0;i<26;i++) { if(x[i]==0) { break; } } if(i==26) { printf(“panagram”); } else { printf(“not panagram”); } return 0; }

Read More
C Programming
Challenging problems

C Program to find two given strings are anagram or not

Write a program to find whether the 2 given strings are anagrams or not. Anagrams are words or phrases made by mixing up the letters of other words or phrases,  Input and Output Format: Input consists of 2 string. Assume that all characters in the string are lowercase letters or spaces and the maximum length of […]

Read More
C Programming
Challenging problems

SMS Language In C

In this tutorial, we will learn how to convert plain English text message into SMS Language In C Programming language. What is SMS Language? SMS Language is also known as slang used in mobile phones that are trendy these days. SMS Language(Abbreviation) English word s yes u you 2day today y why The above table showcases some of […]

Read More
C Programming
Challenging problems

ENCODING program In C Programming Language

In this C Programming tutorial, We will learn how to Encoding in C Programming Language. We are going to implement a C program based on an interesting table with some rules. I  will advise you to first try to solve it with yourself and if you need any help then check out the code mention […]

Read More
C Programming
Challenging problems

Cipher-decipher Program in C

In the language of cryptography, ciphertext refers to a message encoded with a particular key. Plaintext refers to the original, unencoded text. In this problem, both the ciphertext and the key are simply strings of upper-case characters. The ciphertext is generated from the plaintext by “adding” corresponding characters of the plaintext and the key together. […]

Read More
Data Structure

Data Structure: Definition and Types

In this tutorial, we will learn about the theoretical aspect of Data Structure: Its Definition and Types of data structure in C Programming Langauge. A data structure is a way of organizing data that reflects not only the items stored but also their relation to each other. Advance familiarity about the relationship between data items allows […]

Read More
C Programming

Patterns Program in C : 9 numerical patterns and its C program

In this tutorial, we will learn about how to write a C Program for a different numerical pattern. Pattern 1: 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1   C Program for PATTERN 1: #include<stdio.h> int main() { int i,j,n; scanf(“%d”,&n); for(i=0;i<n;i++) { for(j=1;j<=n-i;j++) { printf(“%d “,j); } […]

Read More
C Programming

HISTORY OF C Programming Language

In this article, we are going to talk about an interesting comprehensive History of C programming language and the time when C was developed Microsoft did not exist. C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs who also created  UNIX. The main Purpose of C programming language was to rewrite the […]

Read More