C Programming and Practices

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

1089 views

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();

Super Admin
added 3 years ago
1005 views

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();

Super Admin
added 3 years ago
1021 views

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();

Super Admin
added 3 years ago
1030 views

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);

Super Admin
added 3 years ago
1051 views

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);

Super Admin
added 3 years ago
1053 views

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);

Super Admin
added 3 years ago
1146 views

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);

Super Admin
added 3 years ago
1033 views

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);

Super Admin
added 3 years ago
1025 views

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);

Super Admin
added 3 years ago
1005 views

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 ***");

Super Admin
added 3 years ago