107. Program to reverse the string using pointer.
#include<stdio.h>
#include<conio.h>
void main()
{
char str_array[10000], *ptr;
int i, len;
clrscr();
printf("Enter a string : ");
gets(str_array);
ptr = str_array;
for (i = 0; i < 10000; i++)
{
if (*ptr == '\0')
break;
ptr++;
}
len = i;
ptr--;
printf("\nReversed String is : ");
for (i = len; i > 0; i--)
{
printf("%c", *ptr--);
}
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
void main()
{
char str_array[10000], *ptr;
int i, len;
clrscr();
printf("Enter a string : ");
gets(str_array);
ptr = str_array;
for (i = 0; i < 10000; i++)
{
if (*ptr == '\0')
break;
ptr++;
}
len = i;
ptr--;
printf("\nReversed String is : ");
for (i = len; i > 0; i--)
{
printf("%c", *ptr--);
}
getch();
}
@programming_and_coding
108. Program to sort the strings.
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i, j, n;
char str[20][20], temp[20];
clrscr();
printf("Enter the number of string to be sorted : ");
scanf("%d", &n);
for (i = 0; i <= n; i++)
gets(str[i]);
for (i = 0; i <= n; i++)
for (j = i + 1; j <= n; j++)
{
if (strcmp(str[i], str[j]) > 0)
{
strcpy(temp, str[i]);
strcpy(str[i], str[j]);
strcpy(str[j], temp);
}
}
printf("\nSorted string :");
for (i = 0; i <= n; i++)
{
puts(str[i]);
}
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i, j, n;
char str[20][20], temp[20];
clrscr();
printf("Enter the number of string to be sorted : ");
scanf("%d", &n);
for (i = 0; i <= n; i++)
gets(str[i]);
for (i = 0; i <= n; i++)
for (j = i + 1; j <= n; j++)
{
if (strcmp(str[i], str[j]) > 0)
{
strcpy(temp, str[i]);
strcpy(str[i], str[j]);
strcpy(str[j], temp);
}
}
printf("\nSorted string :");
for (i = 0; i <= n; i++)
{
puts(str[i]);
}
getch();
}
@programming_and_coding
🔰Adobe MEGA MOD Pack🔰
🔥Contents of the MEGA Pack-
👉Adobe Premiere Pro CC 2018
👉Adobe Prelude CC 2018
👉Adobe Lightroom CC 2018
👉Adobe Lightroom Classic CC 2018
👉Adobe Photoshop CC 2018
👉Adobe Muse CC 2018
👉Adobe Media Encoder CC 2018
👉Adobe InDesign CC 2018
👉Adobe InCopy CC 2018
👉Adobe Illustrator CC 2018
👉Adobe Dreamviewer CC 2018
👉Adobe Dimensions CC 2018
👉Adobe Character Animator CC 2018
👉Adobe Bridge CC 2018
👉Adobe Audition CC 2018
👉Adobe Animate CC 2018
👉Adobe After Effects CC 2018
➖➖➖➖➖➖➖➖➖➖➖➖
🔥 Download Link :- https://drive.google.com/drive/u/0/folders/1yDGZ4lOhPiEkG7bG8M8qs5X-E7_I-85d
➖➖➖➖➖➖➖➖➖➖➖➖
Only on @programming_and_coding
📌Note: The Above Softwares are Provided in Google Drive! So, Download Them ASAP!
🔥Contents of the MEGA Pack-
👉Adobe Premiere Pro CC 2018
👉Adobe Prelude CC 2018
👉Adobe Lightroom CC 2018
👉Adobe Lightroom Classic CC 2018
👉Adobe Photoshop CC 2018
👉Adobe Muse CC 2018
👉Adobe Media Encoder CC 2018
👉Adobe InDesign CC 2018
👉Adobe InCopy CC 2018
👉Adobe Illustrator CC 2018
👉Adobe Dreamviewer CC 2018
👉Adobe Dimensions CC 2018
👉Adobe Character Animator CC 2018
👉Adobe Bridge CC 2018
👉Adobe Audition CC 2018
👉Adobe Animate CC 2018
👉Adobe After Effects CC 2018
➖➖➖➖➖➖➖➖➖➖➖➖
🔥 Download Link :- https://drive.google.com/drive/u/0/folders/1yDGZ4lOhPiEkG7bG8M8qs5X-E7_I-85d
➖➖➖➖➖➖➖➖➖➖➖➖
Only on @programming_and_coding
📌Note: The Above Softwares are Provided in Google Drive! So, Download Them ASAP!
109. Program to swap two strings.
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
char str1[100], str2[100], *temp;
clrscr();
printf("Enter first string : ");
gets(str1);
printf("Enter second string : ");
gets(str2);
printf("\nBefore Swapping : \n");
printf("First string : %s\n", str1);
printf("Second string : %s\n", str2);
temp = (char *) malloc(100);
strcpy(temp, str1);
strcpy(str1, str2);
strcpy(str2, temp);
printf("\nAfter Swapping : \n");
printf("First string : %s\n", str1);
printf("Second string : %s\n", str2);
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
char str1[100], str2[100], *temp;
clrscr();
printf("Enter first string : ");
gets(str1);
printf("Enter second string : ");
gets(str2);
printf("\nBefore Swapping : \n");
printf("First string : %s\n", str1);
printf("Second string : %s\n", str2);
temp = (char *) malloc(100);
strcpy(temp, str1);
strcpy(str1, str2);
strcpy(str2, temp);
printf("\nAfter Swapping : \n");
printf("First string : %s\n", str1);
printf("Second string : %s\n", str2);
getch();
}
@programming_and_coding
110. Program to add two matrix.
#include<stdio.h>
#include<conio.h>
void main()
{
int m, n, c, d, first[10][10], second[10][10], sum[10][10];
clrscr();
printf("Enter the number of rows and columns of matrix :");
scanf("%d%d", &m, &n);
printf("\nEnter the elements of first matrix : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
scanf("%d", &first[c][d]);
}
}
printf("\nEnter the elements of second matrix : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
scanf("%d", &second[c][d]);
}
}
printf("\nSum of entered matrices : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
sum[c][d] = first[c][d] + second[c][d];
printf("%d\t", sum[c][d]);
}
printf("\n");
}
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
void main()
{
int m, n, c, d, first[10][10], second[10][10], sum[10][10];
clrscr();
printf("Enter the number of rows and columns of matrix :");
scanf("%d%d", &m, &n);
printf("\nEnter the elements of first matrix : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
scanf("%d", &first[c][d]);
}
}
printf("\nEnter the elements of second matrix : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
scanf("%d", &second[c][d]);
}
}
printf("\nSum of entered matrices : \n");
for (c = 0; c < m; c++)
{
for (d = 0; d < n; d++)
{
sum[c][d] = first[c][d] + second[c][d];
printf("%d\t", sum[c][d]);
}
printf("\n");
}
getch();
}
@programming_and_coding
TCS NQT Registration Started
Last Date: 10th Feb 2021
Exam Date: 18th - 19th Feb 2021
Batch: 2018/19/20/21/22
Registration Link: https://prepflix.in/tcs-nqt
~ via PrepFlix
Telegrem: @programming_and_coding
https://prepflix.in/tcs-nqt
Last Date: 10th Feb 2021
Exam Date: 18th - 19th Feb 2021
Batch: 2018/19/20/21/22
Registration Link: https://prepflix.in/tcs-nqt
~ via PrepFlix
Telegrem: @programming_and_coding
https://prepflix.in/tcs-nqt
111. Program to arrange array numbers in ascending order.
#include<stdio.h>
#include<conio.h>
void main()
{
int i, j, a, n, number[30];
clrscr();
printf("Enter total numbers : ");
scanf("%d", &n);
printf("\n Enter the numbers :\n");
for (i = 0; i < n; ++i)
{
scanf("%d", &number[i]);
}
for (i = 0; i < n; ++i)
{
for (j = i + 1; j < n; ++j)
{
if (number[i] > number[j])
{
a = number[i];
number[i] = number[j];
number[j] = a;
}
}
}
printf("The numbers arranged in ascending order are :\n");
for (i = 0; i < n; ++i)
{
printf("%d\n", number[i]);
}
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
void main()
{
int i, j, a, n, number[30];
clrscr();
printf("Enter total numbers : ");
scanf("%d", &n);
printf("\n Enter the numbers :\n");
for (i = 0; i < n; ++i)
{
scanf("%d", &number[i]);
}
for (i = 0; i < n; ++i)
{
for (j = i + 1; j < n; ++j)
{
if (number[i] > number[j])
{
a = number[i];
number[i] = number[j];
number[j] = a;
}
}
}
printf("The numbers arranged in ascending order are :\n");
for (i = 0; i < n; ++i)
{
printf("%d\n", number[i]);
}
getch();
}
@programming_and_coding
KPIT HIRING FRESHERS
Package - 3.6-5.5 LPA
Last Date - FEB 07
https://assessment.hackerearth.com/challenges/hiring/kpit-campus-hiring-challenge/
🔥Join @programming_and_coding
Package - 3.6-5.5 LPA
Last Date - FEB 07
https://assessment.hackerearth.com/challenges/hiring/kpit-campus-hiring-challenge/
🔥Join @programming_and_coding
ThoughtWorks Recruitment | 8.3LPA | 2020 Batch | BTech/MCA/MTech/MSc
https://assessment.hackerearth.com/challenges/hiring/thoughtworks-qa-developer-diversity-challenge-2021/
Join Telegram: @programming_and_coding
https://assessment.hackerearth.com/challenges/hiring/thoughtworks-qa-developer-diversity-challenge-2021/
Join Telegram: @programming_and_coding
HackerEarth
ThoughtWorks Grad QA Developer Diversity Challenge 2021
At ThoughtWorks, you will see passionate technologists who believe in the power of software and technology as tools for social change. The 1000+ people in ThoughtWorks India are as diverse in personality as they are in their backgrounds, culture, and expertise. …
Standard Chartered Hiring | 2020 & 2021 Batch | 6LPA+ | Females | B Tech
https://sc.taleo.net/careersection/sc1/jobdetail.ftl?job=GBSDHAIN21&lang=en
Telegram: @programming_and_coding
https://sc.taleo.net/careersection/sc1/jobdetail.ftl?job=GBSDHAIN21&lang=en
Telegram: @programming_and_coding
sc.taleo.net
Careers | Standard Chartered Bank
Mobile
Airtel Recruitment | 14.75 to 17.5LPA |BE - CS/IT | 2019 2020 2021 Batch
https://assessment.hackerearth.com/challenges/hiring/airtel-i-code/
Telegram: @programming_and_coding
https://assessment.hackerearth.com/challenges/hiring/airtel-i-code/
Telegram: @programming_and_coding
Atos Hiring Freshers Trainee
atos.net/en/india/campus-recruitment-form
Telegram: @programming_and_coding
atos.net/en/india/campus-recruitment-form
Telegram: @programming_and_coding
Shaping the future together
Join us
Explore job opportunities, get to know us, understand why working with us is beneficial, and get valuable tips on how to join our team. Become Essential, Join Us.
112. Program to check whether the matrix is sparse matrix or not.
#include<stdio.h>
#include<conio.h>
void main()
{
static int array[10][10];
int i, j, m, n;
int counter = 0;
clrscr();
printf("Enter the order of the matix : ");
scanf("%d %d", &m, &n);
printf("\nEnter the co-efficients of the matix :\n");
for (i = 0; i < m; ++i)
{
for (j = 0; j < n; ++j)
{
scanf("%d", &array[i][j]);
if (array[i][j] == 0)
{
++counter;
}
}
}
if (counter > ((m * n) / 2))
{
printf("The given matrix is sparse matrix \n");
}
else
{
printf("The given matrix is not a sparse matrix \n");
}
printf("There are %d number of zeros", counter);
getch();
}
Join : @programming_and_coding
#include<stdio.h>
#include<conio.h>
void main()
{
static int array[10][10];
int i, j, m, n;
int counter = 0;
clrscr();
printf("Enter the order of the matix : ");
scanf("%d %d", &m, &n);
printf("\nEnter the co-efficients of the matix :\n");
for (i = 0; i < m; ++i)
{
for (j = 0; j < n; ++j)
{
scanf("%d", &array[i][j]);
if (array[i][j] == 0)
{
++counter;
}
}
}
if (counter > ((m * n) / 2))
{
printf("The given matrix is sparse matrix \n");
}
else
{
printf("The given matrix is not a sparse matrix \n");
}
printf("There are %d number of zeros", counter);
getch();
}
Join : @programming_and_coding
EMTEC Hiring | 2021 Batch | 4lpa+
Eligibility: BE | MCA | MSc
Last Date - 22nd April
Exam date - 25th April
emtec.digital/join-our-team/freshers-recruitment-drive
Telegram - @programming_and_coding
Eligibility: BE | MCA | MSc
Last Date - 22nd April
Exam date - 25th April
emtec.digital/join-our-team/freshers-recruitment-drive
Telegram - @programming_and_coding
Bridgenext
Careers
Learn more about our culture, explore open positions, and apply to join the Bridgenext team.
TCS Smart Hiring | BSC/BCA/BCS | 2019,2020,2021 Batch
Last Date - 23 May 2021
Exam Date - 6th June 2021
tcs.com/careers/smart-hiring-IT-drive
Telegram - @programming_and_coding
Last Date - 23 May 2021
Exam Date - 6th June 2021
tcs.com/careers/smart-hiring-IT-drive
Telegram - @programming_and_coding
113. Program to delete an element from array.
#include<stdio.h>
#include<conio.h>
void main()
{
int array[100], position, c, n;
clrscr();
printf("Enter total number of elements in array : ");
scanf("%d", &n);
printf("\nEnter element %d : ", n);
for (c = 0; c < n; c++)
scanf("%d", &array[c]);
printf("\nEnter the location from where you wish to delete element : ");
scanf("%d", &position);
if (position >= n + 1)
printf("\nDeletion not possible.");
else
{
for (c = position - 1; c < n - 1; c++)
array[c] = array[c + 1];
printf("\nResultant array is :");
for (c = 0; c < n - 1; c++)
printf("\n%d", array[c]);
}
getch();
}
@programming_and_coding
#include<stdio.h>
#include<conio.h>
void main()
{
int array[100], position, c, n;
clrscr();
printf("Enter total number of elements in array : ");
scanf("%d", &n);
printf("\nEnter element %d : ", n);
for (c = 0; c < n; c++)
scanf("%d", &array[c]);
printf("\nEnter the location from where you wish to delete element : ");
scanf("%d", &position);
if (position >= n + 1)
printf("\nDeletion not possible.");
else
{
for (c = position - 1; c < n - 1; c++)
array[c] = array[c + 1];
printf("\nResultant array is :");
for (c = 0; c < n - 1; c++)
printf("\n%d", array[c]);
}
getch();
}
@programming_and_coding
Cognizant GenC Campus Recruitment | 4.5 LPA | 2021 Batch | Last date - 11 June
bit.ly/3ilbttQ
~via PrepFlix
Telegram - @programming_and_coding
bit.ly/3ilbttQ
~via PrepFlix
Telegram - @programming_and_coding
Walmart Off Campus | 2021 & 2022 Batch | Last Date - 11 June | Cash Prize + CTC upto 26lpa
dare2compete.com/o/walmart-codehers-walmart-india-pvt-ltd-167089
Telegram - @programming_and_coding
dare2compete.com/o/walmart-codehers-walmart-india-pvt-ltd-167089
Telegram - @programming_and_coding
Unstop
Walmart CodeHers - 2021 | 167089
Find out the best Walmart CodeHers that match your interests. Prove your mettle and win exciting prizes like job opportunities and cash rewards from leading ... | 2021 | 167089
I think everyone have bank account but howmany guys have deamat account ?
Anonymous Poll
37%
Yes,I have demat account.
42%
No,I didn't have any demat account .
12%
I didn't believe in stock market .
9%
Other