I have a function which accepts, and is supposed to
initialize,a pointer, but the pointer in the caller remains
unchanged.



I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the ca..

Answer / guest

The called function probably altered only the passed copy of
the pointer.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

What functions are used in dynamic memory allocation in c?

0 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 Answers   HCL, Qualcomm,


what is the difference between malloc() and calloc() function?

1 Answers  


Explain the meaning of keyword 'extern' in a function declaration.

0 Answers  






1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

0 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?

1 Answers   HCL,


FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

4 Answers   Wipro,


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

0 Answers   Celstream,


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

0 Answers   College School Exams Tests,


Categories