Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


What is the right way to use errno?

0 Answers  


What is a pointer value and address in c?

0 Answers  


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 Answers  


What will be the outcome of the following conditional statement if the value of variable s is 10?

0 Answers  


Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .

2 Answers   Oracle,


There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

0 Answers  


design and implement a program that reads floating-points numbers in a sentinel-controlled loop until the user terminates the program by entering zero.your program should determinate and print the smallest,largest and average of the supplied numbers.

2 Answers  


Tell me the use of bit field in c language?

0 Answers  


What are linked lists in c?

0 Answers  


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

0 Answers  


Categories