How can I Create a C program in splitting set of characters
to specific subsets.

Example:

INPUT SET OF CHARACTERS:

Therefore, my dear brothers and sisters, stand firm. Let
nothing move you. Always give yourselves fully to the work
of the Lord, because you know that your labor in the Lord is
not in vain.

SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10

OUTPUT:
Therefore,
my dear b
rothers an
d sisters,
stand fir
m. Let not
hing move
you. Alway
s give you
rselves fu
lly to the
work of t
he Lord, b
ecause you
know that
your labo
r in the L
ord is not
in vain.


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

Post New Answer

More C Code Interview Questions

How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.

1 Answers  


main() { char name[10],s[12]; scanf(" \"%[^\"]\"",s); } How scanf will execute?

2 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


why is printf("%d %d %d",i++,--i,i--);

4 Answers   Apple, Cynity, TCS,


main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }

1 Answers  


why array index always strats wuth zero?

2 Answers  


main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }

4 Answers   CSC,


how can u draw a rectangle in C

53 Answers   Accenture, CO, Codeblocks, Cognizant, HCL, Oracle, Punjab National Bank, SAP Labs, TCS, University, Wipro,


main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000

3 Answers   HCL,


#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

4 Answers   Google, HCL, Quick Heal, WTF,


What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }

1 Answers  


prog. to produce 1 2 3 4 5 6 7 8 9 10

4 Answers   TCS,


Categories