Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *s = (char *) malloc(100);
- char sa[100];
- int main(int argc,char* argv[]){
- char *s = (char *) malloc(20);
- char sa[400] = {0};
- int i ,count;
- printf(" enter the number of chars to write: ");
- scanf("%d",&count);
- for (i=0;i<count;i++){
- printf("%dn",i);
- sa[i] = 'a';
- //s[i] = 'a';
- }
- free(s);
- }
Add Comment
Please, Sign In to add comment