what is available in C language but not in C++?
Answer Posted / hussain reddy
malloc calloc realloc and free in c but not in c++
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What is void main () in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
If I have a char * variable pointing to the name of a function ..
Explain how can a program be made to print the name of a source file where an error occurs?
What is the use of volatile?
Linked lists -- can you tell me how to check whether a linked list is circular?
what do you mean by enumeration constant?
What is calloc() function?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How will you delete a node in DLL?
How many bytes are occupied by near, far and huge pointers (dos)?
Where in memory are my variables stored?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
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); }