what is the difference between normal variables and pointer
variables..............

Answer Posted / mani

Normal variable:memory size of variables depends upon respective datatype; if int it'll take 2byte , char will take 1 byte.
Pointer variable:memory size of pointer variable is constant that is 4byte in gcc compiler irrespective of any datatype.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi send me sample aptitude papers of cts?

1855


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2283


Write a Program to find whether the given number or string is palindrome.

964


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2871


How many identifiers are there in c?

757


What do you know about the use of bit field?

801


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1224


What is "Duff's Device"?

889


What the advantages of using Unions?

894


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

849


what type of questions arrive in interview over c programming?

1759


Do you have any idea how to compare array with pointer in c?

810


Why does everyone say not to use gets?

793


Explain what are run-time errors?

805


Write a C program to count the number of email on text

1628