-
A program in C using Void Pointer
{geshibot language="c"}#include #include int main() { int a=10; void *p; p=&a; clrscr(); printf("%u",*p); getch(); return; }{/geshibot} I know that this program is wrong as error is shown on compiling it. Anyone please provide a simple program using Void pointer in C. Thanks in advance :)
-
Printing Linked List In a Reverse Order Using Head Pointer
How to write a program to print a linked list in reverse order by using only one head pointer[without moving the head pointer].
-
C Coding question on running time program
/*assume contents are sorted*/Public static intbinarySearch(int x,int a[]){int low=0; 0(1)int high=a.length-1; 0(1)int mid; 0(1)while(low>x;while(x!=99){n++; 0(1)sum+=x; 0( n/x)cin>>x;}mean - sum/n;what is the running time?Please help me understand it. The websites are not that helpful to me. Please. Please if you're not that busy can you please answer it with explanations?:) :) :) THANK YOU!!
-
Marbles and Floors
You have a 100-story building and a couple of marbles. You must identify thelowest floor for which a marble will break if you drop it from this floor. How fastcan you find this floor if you are given an infinite supply of marbles? What if youhave only two marbles?
-
Read Heterogenous Linklist
While creating a heterogenous linklist we know that we use void pointer. But when we need to read the information, How will you do it? How will you figure out to what datatype does the data belong to?