You are on page 1of 2

C Test

By using Lcc Win 32 @ compiler or editor

1. Read the following data in two different files

File A: aaaaaaaadddddddd
bbbbbbbbeeeeeeee
ccccccccffffffff

File B: 11111111
22222222
33333333

By using the above files print the following output or write it in the
Other file as follows

aaaaaaaa11111111dddddddd
bbbbbbbb22222222eeeeeeee
cccccccc33333333ffffffffffff

2. Read the output of a file as

ABCDEFGHIFSFSA
1242487132
FSFSA
*

3. Program should do the following;

a) Print the output as

*
FSFSA
1242487132
ABCDEFGHIFSFSA
b) Print the output as
*
AFFSS
1122234478
AABCDEFFFGHISS

Coding knowledge in C is expected.

Execute the following program

1.

a) Read the file A o/p-> aaaaaaabbbbbbb………..ppppppp

b) Read the file B o/p -> 11111112222222…………00000001111111

2. The o/p of the file c based on the outputs of the files a & b. The output of the file C
Should be like using interleaving techniques.

aaaaaa1111111bbbbbbb22222222………….

3. The output of the file D should be the o/ps of the above 3 files

aaaaaa1111111aaaaaa111111…………..bbbbbb222222222bbbbbbbb2222222…
…………..

4. What is pseudo code?

5. Develop the program using pseudo code.

6. Show the o/p of the file C which must based on the file A & B

You might also like