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 ? | 3 Yes | 4 No |
Post New Answer View All Answers
Is any one has SAP GTS( Global Trade Services)Reading and Exercise material. If so, please e-mail me.
If you are a team lead in any IT company, and two employees are under your supervision. If one employee is good and other cannot behave professionally and personally, then how will you handle this situation?
How retrive the deleted file frm UAT by doing migration in SAP BO 4.0
what do u mean by altkey?
Hi, I worked TCS (BA) third party for only 18 days. After that i didnt go to office due to some problem. i send resign letter through mail.Just i want to know whether its affect my career.? also my consultant is drop the mail TCS is ben for me so its true ...i need to pull back agin try. so its posssible Pls guide me
Can you help me what kind of PM interview questions company can ask based on below job description?: *Work with business development, editorial, marketing and other departments as needed to understand and prioritize project requests. *Work with online creative, IT, and development departments to gather and disseminate project requirements. *Maintain weekly web projects production calendar *Assist in the quality assurance process associated with code releases to development, staging and production servers. *Participate in planning meetings for new site initiatives. Document, clarify and articulate requirements and bring thoughts to the discussion. *Distribute reports summarizing project milestones and associated tasks. *Create rough wireframes and functional diagrams for developers using Microsoft Visio. *Work with third party vendors to procure services associated with web development. *Work with our partners to ensure deliverables and associated tasks stay on track. Can you help me what kind of PM question company can ask based on above job description?
How to Cancel SAP PO against Fix transport?
What change management processes have you used to ensure that change is introduced properly?
What are the key performance indicators of Business process analyst?
cost accounting is a tool for dicission making expline
hi i am doing cause study about Enterprising young IT Entrepreneur who has recently started a small business running web hosting services for SME (Small to Medium Enterprise). You frequently need to meet (potential) clients to sell your services to them. You do so with presentations and demonstrations of your products. You will also want to install certain development software for your software development projects. So what software to use? need a server? what types of hosting should i use?
I didn't see any category for Project Management. What are the activities, documents; how to plan, schedule and monitor tasks, statuses, people...?
In SAP Business Objects XI R3.1,4.0 Central Configuration Manager is down means what we have to do?
what is the difference between BI and BW security?
What are your strengths and talents?