what will happen if you free a pointer twice after
allocating memory dynamically ?
Answers were Sorted based on User's Feedback
Write a function in c to find the area of a triangle whose length of three sides is given.
What is #pragma statements?
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????
what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }
what is the difference between call by value and call by reference?
5 Answers Genpact, Global Logic, Infosys,
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }
how to go with this?
Is it better to use a macro or a function?
how to find out the union of two character arrays?
Software Interview Questions