What's a "sequence point"?3 4898
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?7 6051
What's wrong with "char *p; *p = malloc(10);"?5 8565
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.1 2239
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?3 3210
What does a run-time "null pointer assignment" error mean?2 5558
How do I declare a pointer to an array?6 8203
How can I set an array's size at run time?9 7484
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?2 4950
How does free() know how many bytes to free?8 12610
What's the difference between calloc() and malloc()?4 4710
What is alloca() and why is its use discouraged?1 4383
What are .h files and what should I put in them?3 3021
I need testPalindrome and removeSpace
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
string reverse using recursion
which is an algorithm for sorting in a growing Lexicographic order
difference between object file and executable file
Why is it important to memset a variable, immediately after allocating memory to it ?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Wt are the Buses in C Language
how to find anagram without using string functions using only loops in c programming
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa. 2. Enter alphanumeric characters and form 2 array alphaets and digits.Also print the count of each array. 3. Find the count of a certain character. 4. Print the positions where a certain character occured. 5. Print the characters between successive array elements. 6. Find the largest and smallest charcter. How many times it each one occured. 7. Enter a certain range. Print out the array elements which occured between these range. 8. Reverse a character array without using another array. 9. Reverse an array region. 10. Replace a the array elements with it next character . Use a after z. 11. Code the array element with certain character as first alphabet. 12. Duplicate all the vowels in a character array. What is the new count. 13. Delete the vowels in a character array. What is the new array count. 14. Print the count of all characters in the array. 15. Enter n alphabets and store a upto tht charcter in array.What is the array count? 16. Sort a character array. 17. Merge 2 character arrays largearray,smallarray. 18. Find the pair with largest number of characters in between. 19. Find the numerical value of a charcter array. 20. Store n numeral characters in an arrray. Insert another numeral character in a certain position. 21. Insert a character in a sorted array. 22. Merge 2 sorted arrays in sorted fashion. 23. Duplicate the least occuring character. 24. Write a menu driven program to circular right/left shift an array of n elements. 25. Is the character array palindrome? if not make it palindrome. 26. Concatenate the first n charaters to the end of the string. 27. Print all n group of chracters which are palindrome. 28. Concatneate the reverse of last n characters to the array.
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
You have given 2 array. You need to find whether they will
create the same BST or not.
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Array1:10 5 20 15 30
Array2:10 15 20 30 5
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 ??
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1,int a2,int n1,int n2)
//n1 size of array a1 and n2 size of a2
if(n1!=n2) return false;
//n1 and n2 must be same
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Why we not create function inside function.