Passing Array To A Function Using Pointer In C

hey guys!
i have a small trouble, hope it'll be solved soon here..
facing problem in passing array to a function using pointer.
while compiling in borland c it says "Processor fault"
and in DEV C it compiles but doesn't give any output
here's the code
#include
#include
void passarray(int *,int);
int main()
{
const int size=10; 
int a[size];
printf("Enter the elements= ");
for(int i=0;i
                

Replies

  • Vishal Sharma
    Vishal Sharma
    ooOooohhh!! crap!! my bad.. I forgot to place an "&" 😛 😛

You are reading an archived discussion.

Related Posts

In topics like metallurgy and heat treatment processes, we often come across high temperature like upto 800 degree centigrade and above. Now what i would like to know is how...
There is a common thought among people, If we read motivational books we can get confidence, positive thoughts etc. Is that true? I tried for once, Read a book "...
We have a huge quantity of people in India, But we are still lagging in all the sectors, behind the less populated countries. We have a good pool of doctors,...
RIM announced today (Thursday, 2nd August) that the new Blackberry PlayBook will be launched in Canada on 9th of this month. Primarily launched in Canada, the PlayBook will soon reach...
Examples Of Stupid Questions that People Ask 1. When People see you Lying Down, With Ur Eyes Closed, they Ask: ... "Are You Sleeping?" (No! I'm Trying to Die?) 2....