Is this code legal?
int *ptr;
ptr = (int *) 0x400;
Answer / susie
Answer :
Yes
Explanation:
The pointer ptr will point at the integer in the
memory location 0x400.
Is This Answer Correct ? | 17 Yes | 2 No |
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(ā%dā,k); }
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
main() { printf("%d", out); } int out=100;
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
could you please send the program code for multiplying sparse matrix in c????
main() { struct date; struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30
main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024
writte a c-programm to display smill paces
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false