I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?
Answer Posted / jaya prakash
Only Using type modifiers only constant 5 is sent to
function.
[In previous 2 answers address of variable temp (5) is only
send to fn , not a constant 5]
for that fn-call is
function((int*)5);
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are global variables and how do you declare them?
how can I convert a string to a number?
What is || operator and how does it function in a program?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Why main function is special give two reasons?
What is mean by data types in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
how to find binary of number?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Does sprintf put null character?
What is assignment operator?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What are run-time errors?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Is it better to use a macro or a function?