Explain the difference between structs and unions in c?
No Answer is Posted For this Question
Be the First to Post Answer
Why is c so popular?
Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
How can I do peek and poke in c?
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
Reverse a string word by word??
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
What is scope rule in c?
How many parameters should a function have?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
what is the difference between while and do while?
12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
What is a memory leak in structures? How can we rectify that?