In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?
Wt are the Buses in C Language
Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"
What is the size of structure pointer in c?
What is C language Terminator?
Can we access array using pointer in c language?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is #line in c?
4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
what is the difference between structural,object based,object orientd programming languages?