what is pointers
Answers were Sorted based on User's Feedback
Answer / ramya
pointer is a memory variable that stores the address of the
another variabe
| Is This Answer Correct ? | 55 Yes | 0 No |
Answer / arun
A pointer is a programming language data type whose value
refers directly to (or "points to") another value stored
elsewhere in the computer memory using its address.A pointer
references a location in memory, and obtaining the value at
the location a pointer refers to is known as dereferencing
the pointer.
| Is This Answer Correct ? | 21 Yes | 5 No |
Answer / umashankar mishra
pointer is a variable which is used to store the adress of
another variable
syntax:
int *ptr
* symbole is used to defined the pointer
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / p.madhupriya
pointer is a variable that points to address of another variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / durgesh jaiswal
pointer is a memory variable which holds the address of another variable.........
syntax-*ptr
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / backiya
pointer is a memory variable...
it's stored address in another new variable
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ramesh bhumarapu
Pointer is a Reference Variable...
which contains address of another variables
| Is This Answer Correct ? | 0 Yes | 0 No |
Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database.
What is balance factor?
Why is oop useful?
oops concept is used for?
tell about copy constructor
In multilevel inheritance constructors will be executed from the .... class to ... class
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
What is difference between multiple inheritance and multilevel inheritance?
What is encapsulation example?
Why polymorphism is used in oops?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort