SlideShare a Scribd company logo
1 of 1
Download to read offline
Include time header file
#include
Write main method like this :
int main(){
time_t start_t, end_t;
double diff_t;
time(&start_t); // capturing start time
int n;
printf("Enter number of stuents (<=30): ");
scanf("%d", &n);
GradeBook *students = (GradeBook *)malloc(sizeof(GradeBook)*n);
int i,j;
// taking n entries
for(i=0; i
Solution
Include time header file
#include
Write main method like this :
int main(){
time_t start_t, end_t;
double diff_t;
time(&start_t); // capturing start time
int n;
printf("Enter number of stuents (<=30): ");
scanf("%d", &n);
GradeBook *students = (GradeBook *)malloc(sizeof(GradeBook)*n);
int i,j;
// taking n entries
for(i=0; i

More Related Content

More from venkt12345

import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdfimport java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
venkt12345
 
Identify the computer fraud and abuse technique byThis computer f.pdf
Identify the computer fraud and abuse technique byThis computer f.pdfIdentify the computer fraud and abuse technique byThis computer f.pdf
Identify the computer fraud and abuse technique byThis computer f.pdf
venkt12345
 
Average.javaimport java.util.Scanner;public class Average{ .pdf
 Average.javaimport java.util.Scanner;public class Average{ .pdf Average.javaimport java.util.Scanner;public class Average{ .pdf
Average.javaimport java.util.Scanner;public class Average{ .pdf
venkt12345
 
The short answer is no. The reason why you cant p.pdf
                     The short answer is no. The reason why you cant p.pdf                     The short answer is no. The reason why you cant p.pdf
The short answer is no. The reason why you cant p.pdf
venkt12345
 
First, lets start with naming binary ionic comp.pdf
                     First, lets start with naming binary ionic comp.pdf                     First, lets start with naming binary ionic comp.pdf
First, lets start with naming binary ionic comp.pdf
venkt12345
 
Answer1. Since it requires an internal namespace and external, we.pdf
Answer1. Since it requires an internal namespace and external, we.pdfAnswer1. Since it requires an internal namespace and external, we.pdf
Answer1. Since it requires an internal namespace and external, we.pdf
venkt12345
 
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
venkt12345
 
A buffer is a system of a weak acid and its conju.pdf
                     A buffer is a system of a weak acid and its conju.pdf                     A buffer is a system of a weak acid and its conju.pdf
A buffer is a system of a weak acid and its conju.pdf
venkt12345
 

More from venkt12345 (20)

import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdfimport java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
 
Identify the computer fraud and abuse technique byThis computer f.pdf
Identify the computer fraud and abuse technique byThis computer f.pdfIdentify the computer fraud and abuse technique byThis computer f.pdf
Identify the computer fraud and abuse technique byThis computer f.pdf
 
Given A fund that starts with a zero balance with time zero. Fund .pdf
Given  A fund that starts with a zero balance with time zero. Fund .pdfGiven  A fund that starts with a zero balance with time zero. Fund .pdf
Given A fund that starts with a zero balance with time zero. Fund .pdf
 
Average.javaimport java.util.Scanner;public class Average{ .pdf
 Average.javaimport java.util.Scanner;public class Average{ .pdf Average.javaimport java.util.Scanner;public class Average{ .pdf
Average.javaimport java.util.Scanner;public class Average{ .pdf
 
Your equation is correct. Double replacement reac.pdf
                     Your equation is correct. Double replacement reac.pdf                     Your equation is correct. Double replacement reac.pdf
Your equation is correct. Double replacement reac.pdf
 
well while idenitfying aldehydeketone u must kee.pdf
                     well while idenitfying aldehydeketone u must kee.pdf                     well while idenitfying aldehydeketone u must kee.pdf
well while idenitfying aldehydeketone u must kee.pdf
 
The short answer is no. The reason why you cant p.pdf
                     The short answer is no. The reason why you cant p.pdf                     The short answer is no. The reason why you cant p.pdf
The short answer is no. The reason why you cant p.pdf
 
Since it gets in equilibrium when dissolved at sa.pdf
                     Since it gets in equilibrium when dissolved at sa.pdf                     Since it gets in equilibrium when dissolved at sa.pdf
Since it gets in equilibrium when dissolved at sa.pdf
 
phosphite ion .pdf
                     phosphite ion                                    .pdf                     phosphite ion                                    .pdf
phosphite ion .pdf
 
First, lets start with naming binary ionic comp.pdf
                     First, lets start with naming binary ionic comp.pdf                     First, lets start with naming binary ionic comp.pdf
First, lets start with naming binary ionic comp.pdf
 
dFdy=dFdu dudy +dFdv dvdy =e^(u+v) 0 +e.pdf
                     dFdy=dFdu  dudy +dFdv dvdy =e^(u+v)  0 +e.pdf                     dFdy=dFdu  dudy +dFdv dvdy =e^(u+v)  0 +e.pdf
dFdy=dFdu dudy +dFdv dvdy =e^(u+v) 0 +e.pdf
 
At STP22.4 L Is Equivalent to 1 moleThereforeNo. of Moles = 31.pdf
At STP22.4 L Is Equivalent to 1 moleThereforeNo. of Moles = 31.pdfAt STP22.4 L Is Equivalent to 1 moleThereforeNo. of Moles = 31.pdf
At STP22.4 L Is Equivalent to 1 moleThereforeNo. of Moles = 31.pdf
 
ANSWER violation of scientific law scientific la.pdf
                     ANSWER violation of scientific law scientific la.pdf                     ANSWER violation of scientific law scientific la.pdf
ANSWER violation of scientific law scientific la.pdf
 
Answer1. Since it requires an internal namespace and external, we.pdf
Answer1. Since it requires an internal namespace and external, we.pdfAnswer1. Since it requires an internal namespace and external, we.pdf
Answer1. Since it requires an internal namespace and external, we.pdf
 
activity A =N, where N= no of atoms(given) and =decay constant which.pdf
activity A =N, where N= no of atoms(given) and =decay constant which.pdfactivity A =N, where N= no of atoms(given) and =decay constant which.pdf
activity A =N, where N= no of atoms(given) and =decay constant which.pdf
 
a. Linear relationship between x and ySolutiona. Linear relati.pdf
a. Linear relationship between x and ySolutiona. Linear relati.pdfa. Linear relationship between x and ySolutiona. Linear relati.pdf
a. Linear relationship between x and ySolutiona. Linear relati.pdf
 
An overview is presented of gas chromatographyma.pdf
                     An overview is presented of gas chromatographyma.pdf                     An overview is presented of gas chromatographyma.pdf
An overview is presented of gas chromatographyma.pdf
 
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
4. a. Koch.Robert Koch is the founder of modern bacteriology, he i.pdf
 
A buffer is a system of a weak acid and its conju.pdf
                     A buffer is a system of a weak acid and its conju.pdf                     A buffer is a system of a weak acid and its conju.pdf
A buffer is a system of a weak acid and its conju.pdf
 
a salt and water note for example, Na2O + 2HCl .pdf
                     a salt and water  note for example, Na2O + 2HCl .pdf                     a salt and water  note for example, Na2O + 2HCl .pdf
a salt and water note for example, Na2O + 2HCl .pdf
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 

Include time header file#includetime.hWrite main method like t.pdf

  • 1. Include time header file #include Write main method like this : int main(){ time_t start_t, end_t; double diff_t; time(&start_t); // capturing start time int n; printf("Enter number of stuents (<=30): "); scanf("%d", &n); GradeBook *students = (GradeBook *)malloc(sizeof(GradeBook)*n); int i,j; // taking n entries for(i=0; i Solution Include time header file #include Write main method like this : int main(){ time_t start_t, end_t; double diff_t; time(&start_t); // capturing start time int n; printf("Enter number of stuents (<=30): "); scanf("%d", &n); GradeBook *students = (GradeBook *)malloc(sizeof(GradeBook)*n); int i,j; // taking n entries for(i=0; i