To what value are pointers initialized?
1) NULL
2) Newly allocated memory
3) No action is taken by the compiler to initialize
pointers.
Answers were Sorted based on User's Feedback
no action is taken by complier to initialize pointers
Is This Answer Correct ? | 21 Yes | 3 No |
Answer / n
depends:
-if static storage for pointer(pointer itself is a global
variable) => initialized with NULL
-if automatic storage =>no initialization
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / harman bajaj
When we create a pointer, then by default the pointer
initialized with NULL value .i.e. ASCII value of NULL is 0.
Is This Answer Correct ? | 2 Yes | 1 No |
What should not contain a header file?
Reverse a string word by word??
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*
write a program that explain #define and # undef directive
Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We Are Student “ Output: "We Are Student"
How is actual parameter different from the formal parameter?
write a program to find lcm and hcf of two numbers??
write a program for fibonaci series by using while loop in c?
what type of questions arrive in interview over c programming?
explain how do you use macro?
What is difference between %d and %i in c?
What are structure types in C?