Why can't I perform arithmetic on a void* pointer?
No Answer is Posted For this Question
Be the First to Post Answer
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
Method Overloading exist in c ?
What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)
What is the difference between calloc() and realloc()?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
WAP – represent a char in binary format
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
How can I swap two values without using a temporary?
Explain what is a const pointer?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?