-
-
Can math operations be performed on a void pointer?
No. Pointer addition and subtraction are based on advancing the pointer by a number of elements. By definition, if you have a void pointer, you don’t know what it’s pointing to, so you don’t know the size of what it’s pointing to. If you want pointer arithmetic to work on raw addresses, use character pointers.
-
-
Find directory from the file
A file containing the one million directories , then find the a directory from the file and print it in c language.
-
Double Pointer
What is a Double Pointer? What are its specific uses.
-
What is an argument ? differentiate between formal arguments and actual arguments?
An argument is an entity used to pass the data from calling funtion to the called funtion. Formal arguments are the arguments available in the funtion definition.They are preceded by their own data types.Actual arguments are available in the function call.
-
-
When is a switch statement better than multiple if statements?
A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.
-
Using C Program in Microsoft Word
how can we use our c program into the specified application;
as:
if i click on the Microsoft word then our any specified c program executes. -
Stack size of a function
How to write a C function which will return its stack size ?
-
Print the output as follows by a c program without using loops?
print the output as follows by a c program without using loops?
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1 -
Function to find Occurrences
Write a function Occurrences() in a language of your choice that takes in two strings. The first is a search string, and the second is a sentence. For example, running the function:Running Occurrences ("o", "Red Gate Software - Ingeniously Simple Tools")will output: Occurrences of 'o': 4Occurrences ("at", "The cat sat on the mat")will output: Occurrences of 'at': 3charles.
-
-
Pointer Disadvantages
What are the disadvantages of using pointer in C?
-
-
-
Find address of variable
How to find the address of a variable which is declared as long double?
Decrement operator in C
int a=3,y;
y=++a + a+++ --a+ ++a;
printf("%d%d",y,a);
Why value of y become 16.
Ans