1. Write a C program to count the number of occurrence
of
a specific word in the given strings.
(for e.g. Find how many times the word “live” comes in the
sentence “Dream as if you’ll live forever, live as if
you’ll die today ”)

Answer Posted / anil

only balaji's ws de ri8 answer... thanx 2 him...

Is This Answer Correct ?    23 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain null pointer.

615


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2710


Who is the main contributor in designing the c language after dennis ritchie?

543


Why do we use int main?

602


Why is python slower than c?

598






What type is sizeof?

580


What is structure of c program?

599


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1481


how we can make 3d venturing graphics on outer interface

3996


What are integer variable, floating-point variable and character variable?

602


How are structure passing and returning implemented?

588


What does a pointer variable always consist of?

659


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15043


Hi can anyone tell what is a start up code?

1611


What is void pointers in c?

582