write a code for this. serial_number contained in the
header of the file will be read , if this serial number is
less than a previous serial number within a successfully
processed file, or is the same as another serial number
within a successfully processed file, or if the field
contains anything other than 7 digits, then the file must
error with the reason ‘Invalid SERIAL_NUMBER’.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

the difference between new and malloc

5 Answers   Siemens,


#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

0 Answers  


Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


Why is polymorphism used?

0 Answers  


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


What is deep and shalow copy?

3 Answers   L&T, TCS,


What normal C constructs work differently in C++?

2 Answers  


Why is oop useful?

0 Answers  


difference between class and object

10 Answers   Chandan, IBM, Magic Soft,


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


Categories