Why pointers are used in c?



Why pointers are used in c?..

Answer / Pavan Kumar Yadav

Pointers are used in C to access and manipulate memory directly. They allow you to store the memory address of a variable, which can be useful for passing variables to functions, dynamically allocating memory, and creating linked lists and arrays.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the difference between postfix and prefix unary increment operators?

3 Answers  


what is the output of the following program? #include<stdio.h> void main() { float x=1.1; while(x==1.1) { printf("\n%f",x); x=x-0.1; } }

6 Answers  


write a program to convert a expression in polish notation (postfix) to inline (normal)

0 Answers   Siemens,


What does c in a circle mean?

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,


what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }

3 Answers  


main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings

6 Answers  


Where define directive used?

1 Answers  


what is real time system?what is the differance between hard and soft real time systems

2 Answers  


How can I use a preprocessorif expression to ?

1 Answers  


Can we compile a program without main() function?

1 Answers  


Categories