main()
{
int i = 100;
clrscr();
printf("%d", sizeof(sizeof(i)));
}
a. 2
b. 100
c. 4
d. none of the above
Answers were Sorted based on User's Feedback
Answer / kurt s
sizeof() is a compile-time operator, and it's implementation-specific. Depending on compiler and operating system, it is likely to be either (a) or (c). My desktop machine (Fedora core 13 , 32-bit) returns 4, but my old laptop running Win2000 returns 2.
Is This Answer Correct ? | 0 Yes | 0 No |
Write a C function to search a number in the given list of numbers. donot use printf and scanf
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.
What is the main difference between STRUCTURE and UNION?
write a c-program to display the time using FOR loop
main() { extern int i; i=20; printf("%d",sizeof(i)); }
Develop a routine to reflect an object about an arbitrarily selected plane
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
What is "far" and "near" pointers in "c"...?