CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
What is the differece between #define and constant in C?


Category C Interview Questions
Rating (0.0) By 0 users
Added on 7/18/2006
Views 1123
Rate it!
Answers:

A const identifier allows a variable to be constant throughout the file in which it's declared....

Whereas a #define is a macro which replaces the macro-name with a user-defined text statement.....

Also,a macro can be deleted,if we wish,using #undef whereas a const variable once defined can't be done so....





If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
How can we open a image file through C program

View Answer
In c , main() is a function . and where is defined main() in c. bcz every function has three parts.
1>. decleration
2>. definition.
3>. calling

View Answer
What is wrong with the following c program?
char *s1 = "hello";
char *s2 = "world";
char *s3 = strcat(s1, s2);

Please provide me explanations??

View Answer
Between a long pointer and a char pointer , which one consumes more memory? explain

View Answer
What does it mean-

a[i]=i+i

View Answer
How to break cycle in circular single link list?

View Answer
How to improve my c knowledge........

View Answer
How do you write a program which produces its own source code as its output?

View Answer
How to write a C program to find the power of 2 in a normal way and in single step?

View Answer
I want C program code for : Reverse the links of a linked list by traversing only once

Input:
The input consists of the information in each node of the linked list.

Output:
The program displays the information in the linked list after the links are reversed.

Sample Input:
Enter the information in the linked list (Enter -1 to exit): 10
20
30
40
50
-1


Sample Output:
After the links are reversed
Information in the linked list:
50
40
30
20
10




View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/5953/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

1.08