> a = malloc(sizeof(int)*3);
should have been
a = malloc(sizeof(int *)*3);
>Why is it okay?
>Shouldn't I be typecasting them explicitly?
You dont have to ... since C99 ...
http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1047673478&id=1043284351
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(147)
-
▼
June
(41)
- php problem with fopen("https://..")
- TCP/IP Network stack packets Home Network
- JAVA error : Cannot find main class (when executin...
- JAVA Message Service: Understanding the concept of...
- Exception in program: javax.naming.NoInitialContex...
- TCP/IP programming socket port doubts
- Mainframe questions
- Accessing attributes in XML data passed as ArrayCo...
- MySql phrase search
- com.sun.appserv.naming.S1ASCtxFactory
- Flash Media Server: Mutiple streams overlay ?
- WPF tutorials
- Wget : downloading urls matching a regular expression
- c socket programming : file transfer problem
- SQL Query
- Polya counting theory doubt
- Running j2EE application from JAR file
- Difference Between an Enterprise Application Clien...
- Two water jug problem : Existence of a solution
- Calculating the limits of float and double in C
- Scanf problems in C
- Matrix using dynamic memory allocation in C
- Inline functions in C++, finding out with g++
- MySql Questions
- MySql Not Null Property for Varchar
- C++ File handling fstream problem
- Adobe AIR licensing
- Unable to understand wireless router + modem behav...
- Expansion of (a+b+c)^n
- C const pointer
- face enumerations of a cube
- 3 Body Problem
- DB Tables which are in 3NF or 4NF but not in DKNF
- Finding the min and max element in an Array in Flex
- MySql Max Query
- Flex : Filter operator not supported
- C printing question
- DNS lookup questions
- C printf formatting floats
- Creating gif/bmp snapshots with actionscript
- Using Google App Engine - Java
-
▼
June
(41)
No comments:
Post a Comment