how does a general function , that accepts an array as a
parameter, "knows" the size of the array ?
How should it define it parameters list ?
Answers were Sorted based on User's Feedback
Answer / ilana
one option :
myfunc (int my_array[], int n ) { ...}
another option:
myfunc (int *my_array, int n ) { ...}
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / ganesh bankar
its compilers job to identify what is the size the array
depending upon which array is passed to the function.
| Is This Answer Correct ? | 7 Yes | 1 No |
How to write a program for swapping two strings without using 3rd variable and without using string functions.
What should not contain a header file?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation
What is openmp in c?
What is data types?
Explain do array subscripts always start with zero?
How pointer is benefit for design a data structure algorithm?
write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview
2 Answers Satyam, UNIS, Wipro,
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
List out few of the applications that make use of Multilinked Structures?