what is the difference between normal variables and pointer
variables..............
Answers were Sorted based on User's Feedback
Answer / naga raju
a pointer is nothing more than an address, and a pointer variable is just a variable that can store an address.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vrushali
Hi Vighnesh,
Please explain the term data security.....
Thanks
Is This Answer Correct ? | 13 Yes | 13 No |
Answer / priyanka
It gives the value stored at a particular address
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / rafiya
Variable is a name given to the memory location of the specified data type.
Pointers are the variables which are capable of storing another variable's address.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / nibedita
Pointers will store the variable address and normal variable
will store the variable value. But if you will declare int *p;
int i=10; and you want to accsess the memory of i you have
to write p=&i; But i can access directly the memory adress
of variable through printf("%d",&i); Then wht is the
difference between pointer and normal variable?
Is This Answer Correct ? | 0 Yes | 3 No |
Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
Explain the difference between structs and unions in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is the difference between the = symbol and == symbol?
Differentiate call by value and call by reference?
my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details
What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }
what is const volatile?
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?
how to use virual function in real time example
3.write a simple program that will output your name,phone number,e-mail address,and academic major on separate lines 1.create an account and a personal directory for your work b.find out how to create a subdirectory on your system.create one called info c.you will use a text editor to type in your programs and data files.some C systems have a built in text editor;others do not.Find out what text editor you will be using and how to access it.create a text file(not a program) containing your name ,address,and telephone number on separate lines.Next,write the brand of computer you are using and the name of the text editor.Then write a paragraph that describes your past experience with computers.save this file in your info directory. d. find out how to print a file on your system .print out and turn in the file you created in (c).