What is the difference between malloc() and realloc()?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• malloc(): Allocates memory.
• realloc(): Resizes an already allocated memory block, preserving existing data if possible.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• malloc(): Allocates memory.
• realloc(): Resizes an already allocated memory block, preserving existing data if possible.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
What does s c mean on snapchat?
Write a program to reverse a given number in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is return in c programming?
What is a pointer and how it is initialized?
hOW Can I add character in to pointer array of characters char *a="indian"; ie I want to add google after indian in the char *a
What is sizeof c?
What is actual argument?
using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.
What are the loops in c?
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.