I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?
Answer Posted / om prakash mishra
u have to take a temporary variable and pass its adress to
the pointer...like that given below:
// assuming all the conditions are given
int temp=5;
function(&temp);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What are the types of assignment statements?
What is the value of uninitialized variable in c?
What is the advantage of c?
What are valid signatures for the Main function?
program to convert a integer to string in c language'
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is the difference between a free-standing and a hosted environment?
Explain what are its uses in c programming?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain bit masking in c?
Why should I use standard library functions instead of writing my own?
What is function pointer c?
What is the function of multilevel pointer in c?
What is the use of a semicolon (;) at the end of every program statement?