398 views
0 votes
0 votes
Consider the below given C code:

Void main()
{
int x=5,y=2;
int *p;
p=&x;
y=*p;
x=*y;
printf("y is %d x is %d\n",y,x);
}

Choose the correct option:

A) The following program has 1 lexical error, 1 syntax error.

B) The following program has 1 lexical error only.

C) The following program has 1 lexical error, 1 semantic error.

D) No error

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
Anil Ji asked Aug 5, 2018
467 views
The height h of an AVL tree with n nodes lies in the interval:1.log2(n+1) ≤ h < c log2(n+2)+b 2.log10(n) ≤ h < c log10(n+1)+b 3.log10(n+1) ≤ h < c log10(n+2)+b 4.lo...
2 votes
2 votes
2 answers
2
2 votes
2 votes
1 answer
3
himgta asked Apr 21, 2018
323 views
Find the output of the c program below, assume base address of the array is 1500. The size of int is 4 bytes
3 votes
3 votes
1 answer
4
tapzo asked Jan 17, 2018
398 views
let L be a set of binary string whose integer equivalent is congruent to 10 (mod 16) Then minimal DFA that accept L contains how many states ? plz explain