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.
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.
main() { char name[10],s[12]; scanf(" \"%[^\"]\"",s); } How scanf will execute?
can u give me the c codings for converting a string into the hexa decimal form......
why is printf("%d %d %d",i++,--i,i--);
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
why array index always strats wuth zero?
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
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
#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*/ }
prog. to produce 1 2 3 4 5 6 7 8 9 10