Programming Language: C

Programming Language: C

Share

We speak a language that bring the whole world together. This page is dedicated to beginner and intermediate students.

10/11/2014

Can you combine the following two statements into one?

char *p;
p = (char*) malloc(100);
A. char p = *malloc(100);
B. char *p = (char) malloc(100);
C. char *p = (char*)malloc(100);
D. char *p = (char *)(malloc*)(100);

01/04/2014

82)
using namespace std;
int main()
{
char arr[20];
int i;
for(i = 0; i < 10; i++)
*(arr + i) = 65 + i;
*(arr + i) = '\0';
cout

09/08/2013

#75. Write d program to print as follow
5 5 5 5 5
4 4 4 4 5
3 3 3 4 5
2 2 3 4 5
1 2 3 4 5

Want your school to be the top-listed School/college in Amritsar?
Click here to claim your Sponsored Listing.

Telephone

Website

Address

Amritsar