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


Please Help Members By Posting Answers For Below Questions

Explain how do you determine whether to use a stream function or a low-level function?

632


Who invented b language?

924


Describe dynamic data structure in c programming language?

610


If fflush wont work, what can I use to flush input?

623


If the size of int data type is two bytes, what is the range of signed int data type?

596






What are valid operations on pointers?

682


Explain the difference between #include "..." And #include <...> In c?

635


What are void pointers in c?

579


Can you write the function prototype, definition and mention the other requirements.

670


Is null a keyword in c?

743


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1789


What does a pointer variable always consist of?

671


What is a good way to implement complex numbers in c?

600


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

1963


How is a null pointer different from a dangling pointer?

563