Explain what happens if you free a pointer twice?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  


What is switch in c?

0 Answers  


3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r

3 Answers   Huawei,


which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }

3 Answers  






What is the difference between the local variable and global variable in c?

0 Answers  


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

0 Answers  


what is the difference between strcpy() and memcpy() function?

2 Answers  


Is null always defined as 0(zero)?

0 Answers  


who invented c

13 Answers   IBM,


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


what is available in C language but not in C++?

10 Answers   CTS, TCS,


Categories