main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
Answer / susie
Answer :
Compiler error: Undefined label 'here' in function main
Explanation:
Labels have functions scope, in other words the scope of the
labels is limited to functions. The label 'here' is
available in function fun() Hence it is not visible in
function main.
Is This Answer Correct ? | 0 Yes | 0 No |
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
prog. to produce 1 2 3 4 5 6 7 8 9 10
const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above
can u give me the c codings for converting a string into the hexa decimal form......
Is this code legal? int *ptr; ptr = (int *) 0x400;
Finding a number multiplication of 8 with out using arithmetic operator
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
write a origram swaoing valu without 3rd variable
Write a program to print a square of size 5 by using the character S.
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }