C Programming and Practices refers to the study and application of the C programming language, a foundational and versatile language widely used in software development. C is known for its efficiency, low-level memory access, and structured syntax, making it ideal for system programming, embedded systems, and performance-critical applications.
37 questions and answers
Write a C- Program To Count The Lines, Words, Characters In A Given Text.
#include <conio.h> #include <stdio.h> main() { char text[200]; int i,l,ch,w,sp; clrscr();
Write a C- Program To Determine If The Given String Is A Palindrome Or Not.
#include <stdio.h> #include <conio.h> main() { int i,n,j,len=0; char str[30]; clrscr();
Write a C Program That Uses Functions To Delete N – Charactres From A Given Position In A Given String.
#include <stdio.h> #include <conio.h> void del_str(char [],int, int); main() { int n,p; char str[30]; clrscr();
Write a C-Program That Uses Functions To Insert A Sub-String In To A Given Main String From A Given Position.
/* Declaring C-Libraries */ #include <stdio.h> #include <conio.h> /* Declaring function prototypes */ void ins_substr(char [], char [], int, int);
Write a C program to find both the largest and smallest number in list of integers.
#include <stdio.h> #include <conio.h> void main() { int i,n,small=0,large=0; int a[30]; clrscr(); printf("\n Enter size of the array:"); scanf("%d",&n);
Write a C program to find sum of digit of any no.
#include<stdio.h> #include<conio.h> main() { int n,digit,sum=0; printf("\n enter any number"); scanf("%d",&n);
Write a C program to check a year is leap year or not.
#include <stdio.h> #include <conio.h> main() { int y; printf("\n enter any year"); scanf("%d", &y);
Write a C program to print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
#include<stdio.h> #include<conio.h> main() { int n,i,j; printf("\n enter hou meny lines"); scanf("%d",&n);
Write a C program to check a number is even or odd.
#include<stdio.h> #include<conio.h> main() { int n; printf("\n enter any number"); scanf("%d",&n);
Write a C program to manage array operation using switch case.
#include<stdio.h> #include<conio.h> #include<dos.h> void main() { int a[100]={12,45,41,96,32},i,j,m,n,p; clrscr(); printf("\n\n\t*** Proceed according to the instruction ***");
Copyright © 2025 MindStudy
A product by Shunya Intelliware Solution
(Registered under MSME Uddyam)