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
# include<stdio.h> aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); }
To reverse an entire text file into another text file.... get d file names in cmd line
plz send me all data structure related programs
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
How to count a sum, when the numbers are read from stdin and stored into a structure?
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }
What is the hidden bug with the following statement? assert(val++ != 0);
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }