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
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
Derive expression for converting RGB color parameters to HSV values
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
Is the following code legal? typedef struct a { int x; aType *b; }aType
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
Is the following code legal? struct a { int x; struct a *b; }
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
Is the following code legal? struct a { int x; struct a b; }
main() { clrscr(); } clrscr();
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above