hOW Can I add character in to pointer array of characters

char *a="indian";
ie I want to add google after indian in the char *a


Answer Posted / david

it is not possible because it declares a block of array in
the time of initialisation

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does node * mean?

958


How does normalization of huge pointer works?

879


How can I get back to the interactive keyboard if stdin is redirected?

888


Can we declare a function inside a function in c?

810


Wt are the Buses in C Language

2962


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1720


List the difference between a "copy constructor" and a "assignment operator"?

778


What are terms in math?

797


Explain the use of fflush() function?

852


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2420


What are predefined functions in c?

780


What are the disadvantages of c language?

870


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1856


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

866


What are keywords c?

802