No c, in c++
Type: Posts; User: chaman
No c, in c++
Is any variable or container in c which contain any type of data type, vector, map etc contain single data type, if no then how can i solve this problem.
How can determine length of array integer * pm in main when check (length 5) return int**
#include<iostream>
using namespace std;
int** check(){
int a=10,b=2,c=3,d=4,e=5;
int *p[5]...
Zero in int array treat as null not digit
1) how can i use as digit
2) when i remove zero then it print four digit in array and print some garbage value, how remove this remedies
...
Thanks for reply, my prob is short out
int *u = reinterpret_cast<int*>(t);
u++;
but how can i find at run time which data type send to void*, above code work fine when sending data is known...
how void* iterate for next element
#include<iostream>
using namespace std;
void check(void *t){
while(*(int*)t){