Ads block

Showing posts with label C Programs. Show all posts
Showing posts with label C Programs. Show all posts
Programming For Problem Solving Lab Manual
By
Srinivas Dandu
C Programs
·
CE
·
CSD
·
CSE
·
cse(ai&ml)
·
CSE(CS)
·
ECE
·
EEE
·
IT
·
Lab Programs
·
ME
Programming For Problem-Solving Lab Manual View || Download
Read more »
30. A building has 10 floors with a floor height of 3 meters each. A ball is dropped from the top of the building. Find the time taken by the ball to reach each floor. (Use the formula s = ut+(1/2)at^2 where u and a are the initial velocity in m/sec (= 0) and acceleration in m/sec^2 (a= 9.8 m/s^2)).
Program for a building has 10 floors with a floor height of 3 meters each. A ball is dropped from the top of the building. Find the time taken by the ball to…
Read more »
Other Important Programs
a)C Program to Check Armstrong for 3 digit number Source Code : #include <stdio.h> int main() { int num, originalNum, remainder, result = 0; prin…
Read more »
29. write a C Program to count number of vowels, consonants, digits, words in a given file
Program to count number of vowels, consonants, digits, words in a given file Source Code: #include <stdio.h> #include<ctype.h> int main() { char …
Read more »
28. write a C Program to display the file content on reverse order
Program to display the file content on reverse order Source Code: #include<stdio.h> int main() { FILE *fp; char ch; int i,pos; fp…
Read more »
27. write a C program to merge the two files
Program to merge the two files Source Code: #include <stdio.h> #include <stdlib.h> int main() { FILE *fp1 = fopen("/home/smec/Desktop/file1.tx…
Read more »
26. write a C program to append data to the file
Program to append data to the file. Source Code: #include <stdio.h> int main() { FILE *fp; char str[80]; fp = fopen("/home/smec/Desktop/h…
Read more »
25. write a C program to copy the data from one file to another.
Program to copy the data from one file to another. Source Code: #include<stdio.h> void main() { FILE *fp,*fp1; int ch; fp=fopen("/home/smec/blank.tx…
Read more »
24. write a C program to implement call by value and call by reference
Program to implement call by value and call by reference 24a) Call by Value Source Code: #include<stdio.h> void swap(int a,int b) { int t; t=a; a=b; b=t;…
Read more »
23. write a C program to find the factorial of a number using recursive functions
Program to find the factorial of a number using recursive functions Source Code: #include<stdio.h> int fact(int n) { int f; if(n==0) return 1; else f=n*…
Read more »
22. write a C program to find the factorial of a number using functions
Program to find the factorial of a number using functions Source Code: #include<stdio.h> void function(int number) { int i,fact=1; i=1; while(i<=numb…
Read more »
21. write a C program to display the array elements in reverse order using pointers
Program to display the array elements in reverse order using pointers Source Code: #include <stdio.h> #include <stdlib.h> int main() { int tm…
Read more »
20. write a C program to perform arithmetic operations using pointers
Program to perform arithmetic operations using pointers Source Code: #include<stdio.h> int main() { int a=1,b=2,c; int *d1,*d2; d1=&a; d2=&b; c=…
Read more »
19. write a C program to illustrate the use of nested structure
Program to illustrate the use of nested structure Source Code: #include<stdio.h> struct student { char name[30]; struct dob { int date,year,month; }; }; …
Read more »
18. write C program to store the information about three students
Program to store the information about three students. Source Code: #include <stdio.h> struct student { char Name[50]; int roll; float marks…
Read more »
17. write a C program to perform specified operation on complex numbers
Program to perform specified operation on complex numbers Source Code: #include<stdio.h> typedef struct complex { double a; double b; } complex; complex …
Read more »
16. write a C program to display details of student
Program to display details of student like Roll Number, Name and subject Marks Source Code: #include <stdio.h> #include <string.h> struct student {…
Read more »
15. write a C program to count the lines,words and characters in a given text
Program to count the lines,words and characters in a given text. Source Code: #include<stdio.h> int main() { char str[200]; int line, word, ch; line = w…
Read more »
14. write a C program that displays the position of a character in the string if character match
Program that displays the position of a character in the string if character match Source Code: #include<stdio.h> void main() { char x[30]; char c; int i…
Read more »
13. write a C program to insert & delete sub string into/from main string from a given position.
Program to insert & delete sub string into/from main string from a given position. 13a). Insert a sub string into main string from a given position. Sourc…
Read more »
Followers
SEARCH
LATEST
3-latest-65px
SECTIONS
- All Question Papers (1)
- blog (6)
- C Programs (32)
- CE (13)
- Courses (5)
- CSD (16)
- CSE (16)
- cse(ai&ml) (16)
- CSE(CS) (7)
- Downloads (3)
- ECE (14)
- EEE (13)
- Handwrittenotes (7)
- IT (16)
- Lab Programs (2)
- ME (12)
- mind maps (1)
- ML Projects (1)
- NPTEL-Assignments (3)
- Open Source (2)
- PPS MCQ (2)
- Question Papers (1)
- Tech Bytes (2)
- Technical Seminar (6)
- Technical Seminar1 (1)
- Testimonials (4)
- Videos (6)
ABOUT
- Srinivas Dandu
- Hi! This is Srinivas, the best place to get Study Materials and Technology updates.
Powered by Blogger.
Blog Archive
- March 2026 (1)
- September 2024 (1)
- December 2023 (3)
- November 2023 (1)
- October 2023 (1)
- October 2022 (5)
- July 2022 (1)
- May 2022 (1)
- April 2022 (3)
- March 2022 (40)
- February 2022 (2)
- January 2022 (26)
- December 2021 (4)