Write a C Program to create a structured data file named
Student.dat to store the roll no, name
and course.
Provide following functions:
1. Accept the values from the user using structure
variables. Store the contents in a file.
2. Display the file.
3. The user should be able to add new records to the
existing file. And display the new file.
Answer Posted / ratnesh kumar
Write a C program that asks the user to enter a 10-digit.telephone number (the first three digits refer to the area code, the next three digits refer to the exchange code, and the remaining four digits refer to number), print the parts of the number and complete telephone number in additionto the area code and exchange code.
#include<stdio.h>
#include<conio.h>
main()
{
long int num,area_code,exchange_code,remaining_number,d,s;
printf("Enter the Number
");
scanf("%ld",&num);
area_code=num/10000000;
printf("The area code is%ld",area_code);
d=num/10000;
exchange_code=d%1000;
printf("
The exchange code is%ld",exchange_code);
remaining_number=num%10000;
printf("
remaining_number is%ld",remaining_number);
printf("
the sum of areacode and exchange code is:%ld",exchange_code+area_code);
getch();
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
A network diagram for a hospital database. Consider your own set of processes for the hospital.
what do u mean by altkey?
what is the difference between BI and pervasive BI?
This is related to Medical Transcription field. As i am above to get the call from the company, I just want to prepare for the interview for the post of Auditor and I have just never faced the telephonic interview and very rare attempted the interview in companies as I have worked for very few companied.
i am going for the IT Officer written test,can any body mail me the question bank to Pragyanmund@rediffmail.com
DataStage 7.5 & DataStage 8.5 :Which Oracle Database version is supported as target datasource?
What are your strengths and talents?
I have given ielts exam and i got 5.5 bands and i also got three I-20s from the US universities, so my ielts score will interrupt my visa or not? I want to confirm it.
In the creation of the material master if user maintains MRP Type as ‘VB’ (Manual reorder point planning) unless until user will not maintain the Reorder point Qty & fixed lot size Qty system will not allow creating the material which is right process. Hence the same rule should be applied for MRP Type ‘ND’ also. So that user cannot fill the MRP Data unless he will not choose ‘VB’
a. Explain the three (3) Facets of Supply Chain b. Explain the work of logistics c. Explain the three (3) description of customers d. Explain the importance of information technology in logistics
Describe some of your most important career accomplishments
How to Cancel SAP PO against Fix transport?
what do you mean by "Closures with help of Top Management and Colleagues"
In SAP Business Objects XI R3.1,4.0 Central Configuration Manager is down means what we have to do?
Why general ledger accounts require "post automatically" setting in SAP??