write a program to create a sparse matrix using dynamic memory
allocation.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Explain the difference between call by value and call by reference in c language?

0 Answers  


What extern c means?

0 Answers  


c program to input values in a table(using 2D array) and print odd numbers from them

1 Answers  


I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....

2 Answers  


which type of question asked from c / c++ in interview.

2 Answers  


How do we declare variables in c?

0 Answers  


In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT

1 Answers   IBM,


what type of questions arrive in interview over c programming?

0 Answers  


how c source file in converted to exe file

5 Answers   KPIT,


Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }

4 Answers  


What is a method in c?

0 Answers  


What does 3 periods mean in texting?

0 Answers  


Categories