What is wrong with this program statement?
No Answer is Posted For this Question
Be the First to Post Answer
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Explain the difference between structs and unions in c?
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
How can I read data from data files with particular formats?
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
Explain the use of 'auto' keyword in c programming?
Who is the main contributor in designing the c language after dennis ritchie?
How do you determine if a string is a palindrome?
write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC