Create a grammar for a calculator that operates using the four operations only (ADD, SUB, MUL, DIV) over hexadecimal numbers.
The supermarket has different variety of items in different weight. Find maximum weight from these items. Write a program to find maximum weight of an item using dynamic memory allocation.
Runtime Input :
10
2.34
3.43
6.78
2.45
7.64
9.05
5.67
34.95
4.5
3.54
Output :
34.95
Write a program to delete all vowels from a sentence. Assume that the sentence is not
more than 80 characters long.
Write a program that is able to store the record of 30 students using structure and filing in C language. The Data contain roll number (Numeric part only i.e. 007), Registration number (Sp03-BCE-007), Name, Father name, semester result (at least 4 courses marks) and CGPA. Program user will be able to add new input data (if data limit not exceeded already), edit selected data and delete selected data. Also write a function that enable program user to search database with help of either roll number or name. Once match occurs program will display all the relevant credentials (data). Your program main screen displays a menu that give all those options i.e. new, edit, delete, search etc.
You need to put all the checks to restrict user from illegal inputs. Once you input the data and successfully create data file, your program upon executing will able to open the same file without losing any data until user give command through proper instruction (Program menu).
also provides its flow chart and comment on it.
Write a program that is able to store the record of 30 students using structure and filing in C language. The Data contain roll number (Numeric part only i.e. 007), Registration number (Sp03-BCE-007), Name, Father name, semester result (at least 4 courses marks) and CGPA. Program user will be able to add new input data (if data limit not exceeded already), edit selected data and delete selected data. Also write a function that enable program user to search database with help of either roll number or name. Once match occurs program will display all the relevant credentials (data). Your program main screen displays a menu that give all those options i.e. new, edit, delete, search etc.
You need to put all the checks to restrict user from illegal inputs. Once you input the data and successfully create data file, your program upon executing will able to open the same file without losing any data until user give command through proper instruction (Program menu).
also provides its flow chart and comment on it.
In a cricket game, the two teams A and B have different characteristics of players in terms of batsman and bowler. Find similar characteristics of player using union operations. Write a program for set operations using pointers.
These are compilers questions
1. C language is an example of imperative / procedural language, but since it is old (no OO or functional programming allowed), is no more required to industry.
a. True
b. False
2. Considering an ANSI C compiler what can represent a lexical error?
a. a = )a+(b;
b. a = 0.0a;
c. if (a=3) a++;
d. a = α{"version":"1.1","math":"α"}~b;
When you are setting a bit flag (position "p"), what is the mask that you need to use and what is the operation required? What is supposed to be the mask value for reset and what is the operation? Give one example.
In the buffer code, identify the problems if:
(a) You do not use a temporary variable to realloc buffer;
(b) You do not test the buffer before each function.
(c) You do not free the memory in case of error
In buffer, what is the purpose for setting bits EOB (end of buffer) and RLC (rellocation) and in which functions it is supposed to happen?