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?
12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
Write a C Program to display the following menu:
Menu
1. Display
2. Copy
3. Append
4. Exit
Accept the choice (1-4) from the user, and perform the
following tasks:
Choice 1: Accept a file name from the user and display the
file on screen
Choice 2: Accept two file names, and copy first file to the
second
Choice 3: Accept two file names, and append second file to
the first file
Choice 4: Terminate the program
i want the code for printing the output as follows
4 4
3 3
2 2
1 1
0
1 1
2 2
3 3
4 4
76
In CMM or CMMI certified organizations,we assess only the
standard software processes of the organization. We do not
assess the organizations other functional departments like
HR or Admin. Then how can we certify the entire
organization as CMM level company?? We have assessed only
software related activities. Right. There is no relation
with other departments like Accounts, HR or Admin.
Then how can we claim that the whole company is a CMM
certified company?
how we do lcm of two no using c simple if while or for
statement
93
Device an algorithm for weiler-atherton polygon clipping,
where the clipping window can be any specified polygon
468
the factorial of non-negative integer n is written n! and
is defined as follows:
n!=n*(n-1)*(n-2)........1(for values of n greater than or
equal to 1 and
n!=1(for n=0)
Perform the following
1.write a c program that reads a non-negative integer and
computes and prints its factorial.
2. write a C program that estimates the value of the
mathematical constant e by using the formula:
e=1+1/!+1/2!+1/3!+....
3. write a c program the computes the value ex by using the
formula
ex=1+x/1!+xsquare/2!+xcube/3!+....
Write a program which has the following seven functions.
The functions should be:
main() this calls the other 6 functions
fget_long() a function which returns a long data
type from a file
fget_short() a function which returns a short
integer variable from a file
fget_float() a function which returns a floating
point variable from a file
fprt_long() a function which prints its single,
long argument into a file
fprt_short() a function which prints its single,
short argument into a file
fprt_float() a function which prints its single,
floating point argument into a file.
You should use fscanf() to get the values of the variables
from the input (the file) and fprintf() to print the values
to the other file. Pay attention to using the correct
format for each of the data types.
67
Write a C program to fill a rectangle using window scrolling
314
hw can we delete an internal node of binary search tree the
internal node has child node..plz write progarm
Write an interactive c program that will encode or decode a
line of text. To encode a line of text, proceed as follows:
Convert each character, including blank spaces, to its
ASCII equivalent.
Generate a positive random integer. Add this integer to the
ASCII equivalent of each character. The same random integer
will be used for the entire line of text.
Suppose that N1 represents the lowest permissible value in
the ASCII code, and N2 represents the highest permissible
value. If the number obtained in step 2 above exceeds N2,
then subtract the largest possible multiple of N2 from this
number, and add the remainder to N1. Hence the encoded
number will always fall between N1 and N2, and will
therefore always represent some ASCII character.
Display the characters that correspond to the encoded ASCII
values.
The procedure is reversed when decoding a line of text. Be
certain, however, that the same random number is used in
decoding as was used in encoding.