Select the correct option to test your answer:
More Computer Questions
An ___________ rule can be used to define style rules for multiple media types in a single embedded style sheet
An error detecting code is which code is the remainder resulting from dividing the bits to be checked by a predetermined binary number, is known as
What is the space complexity of the Knuth-Morris-Pratt (KMP) algorithm?
What will be the output of the following Java program? import java.io.*; public class filesinputoutput { public static void main(String[] args) { String obj = "abc"; byte b[] = obj.getBytes(); ByteArrayInputStream obj1 = new ByteArrayInputStream(b); for (int i = 0; i < 2; ++ i) { int c; while ((c = obj1.read()) != -1) { if(i == 0) { System.out.print((char)c); } } } } }
What is the output of the following code: #include<stdio.h> #include<stdlib.h> struct Node { int val; struct Node* next; }*head; int get_max() { struct Node* temp = head->next; int max_num = temp->val; while(temp != 0) { if(temp->val > max_num) max_num = temp->val; temp = head->next; } return max_num; } int main() { int n = 9, arr[9] ={5,1,3,4,5,2,3,3,1},i; struct Node *temp, *newNode; head = (struct Node*)malloc(sizeof(struct Node)); head -> next =0; temp = head; for(i=0;i<n;i++) { newNode =(struct Node*)malloc(sizeof(struct Node)); newNode->next = 0; newNode->val = arr[i]; temp->next =newNode; temp = temp->next; } int max_num = get_max(); printf("%d %d",max_num); return 0; }